MCPcopy Create free account
hub / github.com/SolarLune/masterplan / IsGIF

Method IsGIF

resources.go:333–339  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

331}
332
333func (resource *Resource) IsGIF() bool {
334 if resource.FinishedDownloading() {
335 resource.Parse()
336 return strings.Contains(resource.MimeType, "gif")
337 }
338 return false
339}
340
341func (resource *Resource) AsGIF() *GifAnimation {
342 resource.Parse()

Callers 4

DestroyMethod · 0.95
UpdateMethod · 0.80
DrawMethod · 0.80
ValidResourceMethod · 0.80

Calls 3

FinishedDownloadingMethod · 0.95
ParseMethod · 0.95
ContainsMethod · 0.45

Tested by

no test coverage detected