Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader interface {
Search(path string) (*SearchResult, error)
}
Reader searches with a path to try to get a config value. if the result is nil, nil, it means the result wasn't found
type SearchResult ¶
type SearchResult struct { // IFace holds the value if found IFace interface{} // IsAggregated indicates whether the value was stitched together from child config elements // For example, consider a config with the following content: {"subreddits": [{"name": "earthporn"}, {"name": "wallpapers"}]} // We can get all the names with a path like "subreddits[].name". These results are aggregated into a list, and IsAggregated will be set to true IsAggregated bool }
SearchResult is the result of trying to search through a config for a value
Click to show internal directories.
Click to hide internal directories.