Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomTypeConstraintT ¶ added in v6.12.0
type CustomTypeConstraintT interface {
~string
}
type CustomTypeConstraintU ¶ added in v6.12.0
type CustomTypeT ¶
type CustomTypeT any
type CustomTypeU ¶
type CustomTypeU any
type GenericInterface ¶
type GenericInterface[T CustomTypeT] interface { ReturnT() T TakeT(T) TakeAndReturnT(T) T DoSomething() }
type GenericInterfaceAny ¶
type GenericInterfaceAny[T any] interface { ReturnT() T TakeT(T) TakeAndReturnT(T) T DoSomething() }
type GenericInterfaceCustomTypeConstraintT ¶ added in v6.12.0
type GenericInterfaceCustomTypeConstraintT[T CustomTypeConstraintT] interface { ReturnT() T TakeT(T) TakeAndReturnT(T) T DoSomething() }
type GenericInterfaceCustomTypeConstraintU ¶ added in v6.12.0
type GenericInterfaceCustomTypeConstraintU[T CustomTypeConstraintU] interface { ReturnT() T TakeT(T) TakeAndReturnT(T) T DoSomething() }
type GenericInterfaceMultipleTypes ¶
type GenericInterfaceMultipleTypes[T CustomTypeT, U CustomTypeU] interface { ReturnT() T ReturnU() U ReturnTAndU() (T, U) TakeT(T) TakeU(U) TakeTAndU(T, U) TakeAndReturnT(T) T TakeAndReturnU(U) U TakeAndReturnTAndU(T, U) (T, U) TakeTAndReturnU(T) U DoSomething() }
Click to show internal directories.
Click to hide internal directories.