Documentation
¶
Overview ¶
Package assets contains opt-in project resource implementations. Import it from an application setup when that application needs raster images or audio resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultResourceFeature ¶
type DefaultResourceFeature = Feature[ graphics.ImageDecoderSet[ graphicsgif.Decoder, graphicsjpeg.Decoder, graphicspng.Decoder, graphicswebp.Decoder, graphics.NoImageDecoder, ], font.DecoderSet[font.SFNTDecoder, fontwoff2.Decoder], codec.DefaultDecoder, ]
DefaultResourceFeature is the standard decoder bundle used by projects whose resource packages use the built-in asset formats.
type Feature ¶
Feature installs statically selected image, font, and audio decoder collections. Its type arguments are compile-time link boundaries.
func (Feature[I, F, A]) ConfigureResources ¶
func (Feature[I, F, A]) ConfigureResources(context project.ResourceLoadContext, entries project.ResourceEntries) error