feat(go-config): multi-format codecs, envc CLI, fixtures, ASRs

- Module github.com/eslider/go-config with env/yaml/json/ini packages
- internal: source, keymap, merge, structconv, bytesutil
- cmd/envc: convert, get, merge
- docs/asr ASR-0001..0008, README/CHANGELOG/AGENTS refresh
- golangci-lint v2 config; tests + fixtures

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-05-02 14:04:01 +01:00
co-authored by Cursor
parent 288a5b600c
commit c575341178
75 changed files with 2810 additions and 528 deletions
+20
View File
@@ -0,0 +1,20 @@
package ini
import (
"context"
"testing"
"github.com/eslider/go-config/testfixtures"
)
func TestCodec_IdentityINIFixture(t *testing.T) {
c := New(WithBytes(testfixtures.Load(t, "identity", "service.ini")))
m, err := c.Map(context.Background())
if err != nil {
t.Fatal(err)
}
svc := m["service"].(map[string]any)
if svc["name"] != "my-service" {
t.Fatalf("%#v", svc)
}
}