# README
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.
This map also keeps the insertion order when ranging through the Keys()
method.
For more information read the docs here.
Security
If you think you found a vulnerability or other security-related bug in this project, please read our security policy and report the bug to our Security Team 🛡️ Thank you!
e-mail contact: [email protected]
# Functions
DeleteUnexpandedPropsFromString removes all the brace markers "{xxx}" that are not expanded into a value using the Map.ExpandPropsInString() method.
GetOSSuffix returns the os name used to filter os-specific properties in Load* functions.
Load reads a properties file and makes a Map out of it.
LoadFromBytes reads properties data 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 merges the map-of-Maps (obtained from the method FirstLevelOf()) into the target map-of-Maps.
NewFromHashmap creates a new Map from the given map[string]string.
NewMap returns a new Map.
SafeLoad is like Load, except that it returns an empty Map if the specified file doesn't exist.
SafeLoadFromPath is like LoadFromPath, except that it returns an empty Map if the specified file doesn't exist.
SetOSSuffix forces the OS suffix to the given value.
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.