Source File
types.go
Belonging Package
github.com/gookit/goutil/comdef
package comdef// Int interface typetype Int interface {~int | ~int8 | ~int16 | ~int32 | ~int64}// Uint interface typetype Uint interface {~uint | ~uint8 | ~uint16 | ~uint32 | ~uint64 | ~uintptr}// Xint interface type. alias of Integertype Xint interface {Int | Uint}// Integer interface type. all int or uint typestype Integer interface {Int | Uint}// Float interface typetype Float interface {~float32 | ~float64}// IntOrFloat interface type. all int and float types, but NOT uint typestype IntOrFloat interface {Int | Float}// Number interface type. contains all int, uint and float typestype Number interface {Int | Uint | Float}// XintOrFloat interface type. all int, uint and float types. alias of Number//// Deprecated: use Number instead.type XintOrFloat interface {Int | Uint | Float}// NumberOrString interface type for (x)int, float, ~string typestype NumberOrString interface {Int | Uint | Float | ~string}// SortedType interface type. same of constraints.Ordered//// it can be ordered, that supports the operators < <= >= >.//// contains: (x)int, float, ~string typestype SortedType interface {Int | Uint | Float | ~string}// Compared type. alias of constraints.SortedType//// TODO: use type alias, will error on go1.18 Error: types.go:50: interface contains type constraints// type Compared = SortedTypetype Compared interface {Int | Uint | Float | ~string}// SimpleType interface type. alias of ScalarType//// contains: (x)int, float, ~string, ~bool typestype SimpleType interface {Int | Uint | Float | ~string | ~bool}// ScalarType basic interface type.//// TIP: has bool type, it cannot be ordered//// contains: (x)int, float, ~string, ~bool typestype ScalarType interface {Int | Uint | Float | ~string | ~bool}// StrMap is alias of map[string]stringtype StrMap map[string]string// AnyMap is alias of map[string]anytype AnyMap map[string]any// L2StrMap is alias of map[string]map[string]stringtype L2StrMap map[string]map[string]string
![]() |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |