feat: add TOML codec and envc format support

New toml package (pelletier/go-toml/v2) matching yaml/json options and merge flow.
envc convert/get/merge accept --from/--to toml; fixture and CLI tests; docs refresh.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-03 10:42:21 +01:00
co-authored by Cursor
parent 2d7b97f5ae
commit 474cd88739
16 changed files with 307 additions and 16 deletions
+3 -2
View File
@@ -1,6 +1,6 @@
// Package config is the module root for go-config (import path
// github.com/eslider/go-config). Use the subpackages [env], [yaml], [json], and
// [ini] for format-specific codecs and the [cmd/envc] command for CLI
// github.com/eslider/go-config). Use the subpackages [env], [yaml], [json], [toml],
// and [ini] for format-specific codecs and the [cmd/envc] command for CLI
// conversion.
//
// Hero workflow (YAML + layered dotenv + process env):
@@ -19,5 +19,6 @@
// [env]: https://pkg.go.dev/github.com/eslider/go-config/env
// [yaml]: https://pkg.go.dev/github.com/eslider/go-config/yaml
// [json]: https://pkg.go.dev/github.com/eslider/go-config/json
// [toml]: https://pkg.go.dev/github.com/eslider/go-config/toml
// [ini]: https://pkg.go.dev/github.com/eslider/go-config/ini
package config