Documentation
¶
Index ¶
- Variables
- type HelperMap
- func (h *HelperMap) Add(key string, helper interface{}) error
- func (h *HelperMap) AddMany(helpers map[string]interface{}) error
- func (h HelperMap) All() map[string]interface{}
- func (h HelperMap) Helpers() map[string]interface{}
- func (h *HelperMap) Snapshot() (map[string]interface{}, uint64)
- func (h *HelperMap) Version() uint64
Constants ¶
This section is empty.
Variables ¶
View Source
var Base = hctx.Merge( Content, Debug, Encoders, Env, Escapes, Inflections, Iterators, Meta, Paths, Text, )
View Source
var Content = content.New()
View Source
var Debug = debug.New()
View Source
var Encoders = encoders.New()
View Source
var Env = env.New()
View Source
var Escapes = escapes.New()
View Source
var Inflections = inflections.New()
View Source
var Iterators = iterators.New()
View Source
var Meta = meta.New()
View Source
var Paths = paths.New()
View Source
var Text = text.New()
Functions ¶
This section is empty.
Types ¶
type HelperMap ¶
type HelperMap struct {
// contains filtered or unexported fields
}
HelperMap holds onto helpers and validates they are properly formed.
func (*HelperMap) Add ¶
Add a new helper to the map. New Helpers will be validated to ensure they meet the requirements for a helper:
Click to show internal directories.
Click to hide internal directories.