Documentation ¶
Index ¶
- func Add(options []model.AssetOption) error
- func Get(name, context string) (*model.Asset, bool)
- func Head(name, context string) (*model.Asset, bool)
- func List() (map[string][]*model.Asset, error)
- func LoadContextualizedLocale(context, locale string)
- func Open(name string, context string) (*bytes.Reader, error)
- func Remove(name, context string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
Get looks for an asset. It tries in this order: 1. A dynamic asset for the given context 2. A dynamic asset for the default context 3. A static asset.
func Head ¶
Head does the same job as Get, but the returned model.Asset can have no body data. It allows to use a cache for it.
func List ¶
List returns a map containing all the existing assets (statik & dynamic) Each map key represents the context
func LoadContextualizedLocale ¶
func LoadContextualizedLocale(context, locale string)
LoadContextualizedLocale loads the translations dictionary from dynamic assets for the given locale and context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.