github.com/demonoid81/moby@v0.0.0-20200517203328-62dd8e17c460/pkg/plugins/pluginrpc-gen/fixtures/foo.go (about) 1 package foo // import "github.com/demonoid81/moby/pkg/plugins/pluginrpc-gen/fixtures" 2 3 import ( 4 aliasedio "io" 5 6 "github.com/demonoid81/moby/pkg/plugins/pluginrpc-gen/fixtures/otherfixture" 7 ) 8 9 type wobble struct { 10 Some string 11 Val string 12 Inception *wobble 13 } 14 15 // Fooer is an empty interface used for tests. 16 type Fooer interface{} 17 18 // Fooer2 is an interface used for tests. 19 type Fooer2 interface { 20 Foo() 21 } 22 23 // Fooer3 is an interface used for tests. 24 type Fooer3 interface { 25 Foo() 26 Bar(a string) 27 Baz(a string) (err error) 28 Qux(a, b string) (val string, err error) 29 Wobble() (w *wobble) 30 Wiggle() (w wobble) 31 WiggleWobble(a []*wobble, b []wobble, c map[string]*wobble, d map[*wobble]wobble, e map[string][]wobble, f []*otherfixture.Spaceship) (g map[*wobble]wobble, h [][]*wobble, i otherfixture.Spaceship, j *otherfixture.Spaceship, k map[*otherfixture.Spaceship]otherfixture.Spaceship, l []otherfixture.Spaceship) 32 } 33 34 // Fooer4 is an interface used for tests. 35 type Fooer4 interface { 36 Foo() error 37 } 38 39 // Bar is an interface used for tests. 40 type Bar interface { 41 Boo(a string, b string) (s string, err error) 42 } 43 44 // Fooer5 is an interface used for tests. 45 type Fooer5 interface { 46 Foo() 47 Bar 48 } 49 50 // Fooer6 is an interface used for tests. 51 type Fooer6 interface { 52 Foo(a otherfixture.Spaceship) 53 } 54 55 // Fooer7 is an interface used for tests. 56 type Fooer7 interface { 57 Foo(a *otherfixture.Spaceship) 58 } 59 60 // Fooer8 is an interface used for tests. 61 type Fooer8 interface { 62 Foo(a map[string]otherfixture.Spaceship) 63 } 64 65 // Fooer9 is an interface used for tests. 66 type Fooer9 interface { 67 Foo(a map[string]*otherfixture.Spaceship) 68 } 69 70 // Fooer10 is an interface used for tests. 71 type Fooer10 interface { 72 Foo(a []otherfixture.Spaceship) 73 } 74 75 // Fooer11 is an interface used for tests. 76 type Fooer11 interface { 77 Foo(a []*otherfixture.Spaceship) 78 } 79 80 // Fooer12 is an interface used for tests. 81 type Fooer12 interface { 82 Foo(a aliasedio.Reader) 83 }