github.com/nhooyr/toml

toml TODO: [ ] Tests [ ] Rethink errors returned [ ] Maybe add a interface for structs that need members to be allocated before (like *tls.Config) TODO WHICH ONE? [ ] Recursively find methods up so like or (need a custom stack) [ ] Use a function map instead of method to handle initialization [ ] Add InitElement for arrays/maps maybe [ ] Nonemptystring type [ ] Unmarshaler interface support [x] Error for unknown key in toml file [x] Map support [ ] Refactor to use decoder struct and a custom stack [ ] Is array support necessary? [ ] Not sure why but for arrays/slices, the position is constant.


License
Apache-2.0
Install
go get github.com/nhooyr/toml

Documentation

toml

TODO:

  • Tests
  • Rethink errors returned
  • Maybe add a interface for structs that need members to be allocated before (like *tls.Config)

TODO WHICH ONE?

  • Recursively find methods up so like InitFieldField or InitFieldElement (need a custom stack)
  • Use a function map instead of method to handle initialization

  • Add InitElement for arrays/maps maybe

  • Nonemptystring type
  • Unmarshaler interface support
  • Error for unknown key in toml file
  • Map support
  • Refactor to use decoder struct and a custom stack
  • Is array support necessary?
  • Not sure why but for arrays/slices, the position is constant. Probably because of one key.
  • Should Loc in a struct be supported?
  • Major refactoring for using location struct and custom stack
  • Loc in maps
  • Support empty table names
  • Array of length 0 vs empty array