Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataMap ¶
type DataMap struct {
// contains filtered or unexported fields
}
DataMap is a hierarchical data structure which allows clients to get and set values by their JavaScript-like paths, e.g. "foo.bar.baz". It can also have get-fail-handler, which is invoked if Get fails to find value at the provided path. This way, clients can have some "phantom" values.
func New ¶
func New(getFailHandler GetFailHandler) *DataMap
New creates new DataMap with the provided GetFailHandler.
type GetFailHandler ¶
GetFailHandler, if specified, is called when DataMap.Get fails to get the value normally. This way, client can create some "phantom" values.
Click to show internal directories.
Click to hide internal directories.