v0.2.0 toml-only, harden concurrency and env export, dep updates
Test / test (push) Canceled after 0s

This commit is contained in:
lixen committed 2026-09-28 16:55:58 -04:00
1 parent 3c35601179
commit e08467bf38
42 files changed
+2533 -4274

No files matched your search

+4 -4
View File
@@ -43,8 +43,8 @@ func TestBuilder(t *testing.T) {
os.WriteFile(configFile, []byte(`host = "filehost"`), 0644)
type Config struct {
Host string `json:"hostname"`
Port int `json:"port"`
Host string `toml:"hostname"`
Port int `toml:"port"`
}
defaults := &Config{
@@ -59,7 +59,7 @@ func TestBuilder(t *testing.T) {
cfg, err := NewBuilder().
WithDefaults(defaults).
WithTagName("json").
WithTagName("toml").
WithPrefix("server").
WithEnvPrefix("APP_").
WithFile(configFile).
@@ -360,4 +360,4 @@ func TestBuilderWithTypedValidator(t *testing.T) {
require.Error(t, err)
assert.Contains(t, err.Error(), "typed validator signature")
})
}
}