🚨 A bunch of small improvements from linter

This commit is contained in:
Dan Jones 2025-03-19 18:05:16 -05:00
commit 8f02956ecd
10 changed files with 51 additions and 47 deletions

View file

@ -37,7 +37,7 @@ func ExampleGenerator_Make() {
func ExampleMultiGeneratorInOrder() {
gen1 := func(*nomino.Config) (string, error) {
return "hello", nil
return "bonjour", nil
}
gen2 := func(*nomino.Config) (string, error) {
return "goodbye", nil
@ -54,17 +54,17 @@ func ExampleMultiGeneratorInOrder() {
fmt.Println(str)
// Output:
// hello.txt
// bonjour.txt
// goodbye.txt
// hello.txt
// bonjour.txt
}
func ExampleMultiGeneratorRandomOrder() {
gen1 := func(*nomino.Config) (string, error) {
return "hello", nil
return "guten-tag", nil
}
gen2 := func(*nomino.Config) (string, error) {
return "goodbye", nil
return "wiedersehen", nil
}
gen := nomino.MultiGeneratorRandomOrder(gen1, gen2)