♻️ Export Config
This commit is contained in:
parent
5c4e66d144
commit
7bd5503613
6 changed files with 56 additions and 38 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue