modulepackage
0.0.0-20211004081742-962098bc0221
Repository: https://github.com/arduino/go-properties-map.git
Documentation: pkg.go.dev
# README
DEPRECATED: This library has been phased out in favor of: https://github.com/arduino/go-properties-orderedmap
Please use the library above for new projects
Package properties
is a library for handling maps of hierarchical properties.
This library is mainly used in the Arduino platform software to handle configurations made of key/value pairs stored in files with an INI like syntax.
For more information read the docs here.
# Functions
DeleteUnexpandedPropsFromString removes all the brace markers "{xxx}" that are not expanded into a value using the Map.ExpandPropsInString() method.
Load reads a properties file and makes a Map out of it.
LoadFromPath reads a properties file and makes a Map out of it.
LoadFromSlice reads a properties file from an array of string and makes a Map out of it.
MergeMapsOfProperties merge the map-of-Maps (obtained from the method FirstLevelOf()) into the target map-of-Maps.
SafeLoad is like Load, except that it returns an empty Map if the specified file doesn't exists.
SafeLoadFromPath is like LoadFromPath, except that it returns an empty Map if the specified file doesn't exists.
SplitQuotedString splits a string by spaces and at the same time allows to use spaces in a single element of the split using quote characters.
# Type aliases
Map is a container of properties.