♻️ Export Config

This commit is contained in:
Dan Jones 2025-03-10 14:52:50 -05:00
commit 7bd5503613
6 changed files with 56 additions and 38 deletions

View file

@ -11,7 +11,7 @@ import (
func TestWithGenerator(t *testing.T) {
g := func() (string, error) { return "abc", nil }
var c config
var c Config
WithGenerator(g)(&c)
st, err := c.generator()
assert.NoError(t, err)