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
Encodes data to the file specified in fileOrOptions. the file will be created if it doesn't exist.
When fileOrOptions is a string, it simply is the file path.
When fileOrOptions is a table, it should havefile, and optionally, overwrite as keys. file is the file path, and overwrite should be true when file should be overwritten with data, and false when data should be appended to file.
Added tests that cover:
The property accessors of toml.Date, toml.Time, toml.DateTime, and toml.TimeOffset.
toml.toJSON and toml.toYAML.
Changed
toml.tomlToJSON and toml.tomlToYAML have been renamed to toml.toJSON and toml.toYAML.
They have been renamed because they now have two functions: converting a TOML string to JSON/YAML (as before), or converting a table into JSON/YAML.
The first parameter can be a string containing TOML (as before), or a table.