MCPcopy Create free account
hub / github.com/EngoEngine/engo / Unload

Method Unload

assets.go:133–139  ·  view source on GitHub ↗

Unload releases the given resource from memory.

(url string)

Source from the content-addressed store, hash-verified

131
132// Unload releases the given resource from memory.
133func (formats *Formats) Unload(url string) error {
134 ext := getExt(url)
135 if loader, ok := Files.formats[ext]; ok {
136 return loader.Unload(url)
137 }
138 return fmt.Errorf("no `FileLoader` associated with this extension: %q in url %q", ext, url)
139}
140
141// Resource returns the given resource, and an error if it didn't succeed.
142func (formats *Formats) Resource(url string) (Resource, error) {

Callers

nothing calls this directly

Calls 2

getExtFunction · 0.70
UnloadMethod · 0.65

Tested by

no test coverage detected