🚨 A bunch of small improvements from linter
This commit is contained in:
parent
480e36763f
commit
8f02956ecd
10 changed files with 51 additions and 47 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue