assets

package
v0.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

DefaultResourceFeature is the standard decoder bundle used by projects whose resource packages use the built-in asset formats.

type Feature

type Feature[I graphics.ImageDecoder, F font.Decoder, K window.IconDecoder, A audio.Decoder] struct{}

Feature installs statically selected image, font, and audio decoder collections. Its type arguments are compile-time link boundaries.

func (Feature[I, F, K, A]) ConfigureResources

func (Feature[I, F, K, A]) ConfigureResources(context project.ResourceLoadContext, entries project.ResourceEntries) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL