You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This response is years late, but since I just discovered this package and started reading the source, I can answer your question.
The path parameter of the Save and Load functions is supposed to be a relative path, not an absolute path.
This is because internally, the os specific path builder function pieces together the absolute path from three things - the os specific configuration directory, applicationName , and finally the path.
So to use this library, you should call Init with your applicationName and then the path needs to be the relative path to this applicationName directory inside the os specific configuration directory.
Why do we need applicationName? If we do not provide it, the lib can use local config path, for example store.Load("./config.yaml", &config)
The text was updated successfully, but these errors were encountered: