Documentation
¶
Overview ¶
Package resourcelib connects pkg/assets to pkg/resource.Library without widening resource.Library's public API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ReadFile reads path from lib's underlying fs.FS when lib is a non-nil // *resource.Library with a non-nil file system. ok reports whether lib had // a file system to read from. ReadFile func(lib any, path string) (data []byte, ok bool, err error) // RetainExisting increments the retain count for path in lib when path is // already cached and returns the cached resource. RetainExisting func(lib any, path string) (res any, ok bool) // StoreRetain stores r, parsed from data, at path in lib if not already loaded (recording data as the path's Library.Source), increments its retain count, and returns the canonical cached resource. StoreRetain func(lib any, path string, r any, data []byte) (res any, err error) )
Hooks populated by pkg/resource's init.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.