Documentation ¶
Index ¶
- type A
- type AsyncProducer
- type B
- type Blank
- type C
- type ConsulLock
- type EmbeddedGet
- type Err
- type Example
- type Expecter
- type Fooer
- type FuncArgsCollision
- type GenericInterface
- type GenericType
- type GetGeneric
- type GetInt
- type HasConflictingNestedImports
- type ImportsSameAsPackage
- type InstantiatedGenericInterface
- type Issue766
- type KeyManager
- type MapFunc
- type MapToInterface
- type MyReader
- type PanicOnNoReturnValue
- type ReplaceGeneric
- type ReplaceGenericSelf
- type Requester
- type Requester2
- type Requester3
- type Requester4
- type RequesterArgSameAsImport
- type RequesterArgSameAsNamedImport
- type RequesterArgSameAsPkg
- type RequesterArray
- type RequesterElided
- type RequesterGenerics
- type RequesterIface
- type RequesterNS
- type RequesterPtr
- type RequesterReturnElided
- type RequesterSlice
- type RequesterVariadic
- type SendFunc
- type Sibling
- type StructWithTag
- type UnsafeInterface
- type UsesAny
- type UsesOtherPkgIface
- type Variadic
- type VariadicFunction
- type VariadicNoReturnInterface
- type VariadicReturnFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncProducer ¶
type ConsulLock ¶
type EmbeddedGet ¶ added in v2.9.6
type EmbeddedGet[T constraints.Signed] interface{ GetGeneric[T] }
type Example ¶
type Example interface { A() http.Flusher B(fixtureshttp string) my_http.MyStruct C(fixtureshttp string) number_dir_http.MyStruct }
Example is an example
type FuncArgsCollision ¶ added in v2.5.1
type FuncArgsCollision interface {
Foo(ret interface{}) error
}
type GenericInterface ¶ added in v2.44.0
type GenericType ¶ added in v2.9.6
type GetGeneric ¶ added in v2.9.6
type GetGeneric[T constraints.Integer] interface{ Get() T }
type HasConflictingNestedImports ¶
type HasConflictingNestedImports interface { RequesterNS Z() http.MyStruct }
type ImportsSameAsPackage ¶
type ImportsSameAsPackage interface { A() test.B B() KeyManager C(C) }
type InstantiatedGenericInterface ¶ added in v2.44.0
type InstantiatedGenericInterface GenericInterface[float32]
type MapToInterface ¶
type MapToInterface interface {
Foo(arg1 ...map[string]interface{})
}
type PanicOnNoReturnValue ¶ added in v2.38.0
type PanicOnNoReturnValue interface {
DoSomething() string
}
type ReplaceGeneric ¶ added in v2.42.0
type ReplaceGeneric[ TImport any, TConstraint constraints.Signed, TKeep any, ] interface { A(t1 TImport) TKeep B() TImport C() TConstraint }
type ReplaceGenericSelf ¶ added in v2.42.0
type ReplaceGenericSelf[T any] interface { A() T }
type Requester2 ¶
type Requester3 ¶
type Requester3 interface {
Get() error
}
type Requester4 ¶
type Requester4 interface {
Get()
}
type RequesterArgSameAsImport ¶
type RequesterArgSameAsImport interface {
Get(json string) *json.RawMessage
}
type RequesterArgSameAsNamedImport ¶
type RequesterArgSameAsNamedImport interface {
Get(json string) *json.RawMessage
}
type RequesterArgSameAsPkg ¶
type RequesterArgSameAsPkg interface {
Get(test string)
}
type RequesterArray ¶
type RequesterElided ¶
type RequesterGenerics ¶ added in v2.9.6
type RequesterGenerics[ TAny any, TComparable comparable, TSigned constraints.Signed, TIntf GetInt, TExternalIntf io.Writer, TGenIntf GetGeneric[TSigned], TInlineType interface{ ~int | ~uint }, TInlineTypeGeneric interface { ~int | GenericType[int, GetInt] comparable }, ] interface { GenericArguments(TAny, TComparable) (TSigned, TIntf) GenericStructs(GenericType[TAny, TIntf]) GenericType[TSigned, TIntf] GenericAnonymousStructs(struct{ Type1 TExternalIntf }) struct { Type2 GenericType[string, EmbeddedGet[int]] } }
type RequesterIface ¶
type RequesterPtr ¶
type RequesterReturnElided ¶
type RequesterSlice ¶
type RequesterVariadic ¶
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 StructWithTag ¶ added in v2.22.0
type UnsafeInterface ¶ added in v2.9.6
type UsesOtherPkgIface ¶
type UsesOtherPkgIface interface {
DoSomethingElse(obj Sibling)
}
type Variadic ¶ added in v2.40.1
type Variadic interface {
VariadicFunction(str string, vFunc VariadicFunction) error
}
type VariadicFunction ¶ added in v2.40.1
type VariadicFunction = func(args1 string, args2 ...interface{}) interface{}
type VariadicNoReturnInterface ¶ added in v2.33.2
type VariadicNoReturnInterface interface {
VariadicNoReturn(j int, is ...interface{})
}
type VariadicReturnFunc ¶ added in v2.40.1
Source Files ¶
- any_keyword.go
- argument_is_func_type.go
- argument_is_map_func.go
- async.go
- consul.go
- custom_error.go
- empty_interface.go
- expecter.go
- func_args_collision.go
- function.go
- generic.go
- imports_from_nested_interface.go
- imports_same_as_package.go
- instantiated_generic_interface.go
- io_import.go
- issue_766.go
- map_to_interface.go
- mock_method_uses_pkg_iface.go
- panic_err.go
- requester.go
- requester2.go
- requester3.go
- requester4.go
- requester_arg_same_as_import.go
- requester_arg_same_as_named_import.go
- requester_arg_same_as_pkg.go
- requester_array.go
- requester_elided.go
- requester_iface.go
- requester_ns.go
- requester_ptr.go
- requester_ret_elided.go
- requester_slice.go
- requester_unexported.go
- requester_variadic.go
- same_name_imports.go
- struct_value.go
- struct_with_tag.go
- unsafe.go
- variadic.go
- variadic_return_func.go
Directories ¶
Path | Synopsis |
---|---|
12345678
|
|
buildtag
|
|
method_args
|
|
pkg_with_no_files
|
|
subpkg_with_only_autogenerated_files
Code generated by an arbitrary code generator thingy.
|
Code generated by an arbitrary code generator thingy. |
Click to show internal directories.
Click to hide internal directories.