type A interface { Call() (B, error) }
type AsyncProducer interface { Input() chan<- bool Output() <-chan bool Whatever() chan bool }
type B struct{}
type Blank interface { Create(x interface{}) error }
type C int
type ConsulLock interface { Lock(<-chan struct{}) (<-chan struct{}, error) Unlock() error }
type Err struct {
// contains filtered or unexported fields
}
func (e *Err) Code() uint64
func (e *Err) Error() string
Example is an example
type Example interface { A() http.Flusher B(fixtureshttp string) my_http.MyStruct }
type Fooer interface { Foo(f func(x string) string) error Bar(f func([]int)) Baz(path string) func(x string) string }
type HasConflictingNestedImports interface { RequesterNS Z() http.MyStruct }
type ImportsSameAsPackage interface { A() test.B B() KeyManager C(C) }
type KeyManager interface { GetKey(string, uint16) ([]byte, *Err) }
type MapFunc interface { Get(m map[string]func(string) string) error }
type MyReader interface { io.Reader }
type Requester interface { Get(path string) (string, error) }
type Requester2 interface { Get(path string) error }
type Requester3 interface { Get() error }
type Requester4 interface { Get() }
type RequesterArgSameAsImport interface { Get(json string) *json.RawMessage }
type RequesterArgSameAsNamedImport interface { Get(json string) *json.RawMessage }
type RequesterArgSameAsPkg interface { Get(test string) }
type RequesterArray interface { Get(path string) ([2]string, error) }
type RequesterElided interface { Get(path, url string) error }
type RequesterIface interface { Get() io.Reader }
type RequesterNS interface { Get(path string) (http.Response, error) }
type RequesterPtr interface { Get(path string) (*string, error) }
type RequesterReturnElided interface { Get(path string) (a, b, c int, err error) }
type RequesterSlice interface { Get(path string) ([]string, error) }
type RequesterVariadic interface { // cases: only variadic argument, w/ and w/out interface type Get(values ...string) bool OneInterface(a ...interface{}) bool // cases: normal argument + variadic argument, w/ and w/o interface type Sprintf(format string, a ...interface{}) string MultiWriteToFile(filename string, w ...io.Writer) string }
type Sibling interface { DoSomething() }
type UsesOtherPkgIface interface { DoSomethingElse(obj Sibling) }