genericinterface

package
v6.12.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 29, 2025 License: MIT Imports: 0 Imported by: 0

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 CustomTypeConstraintU interface {
	int64 | float64
}

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()
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL