Documentation
¶
Overview ¶
Package types provides type definitions for various data types.
Package types defines interfaces for different types of data.
Package types defines interfaces for different types of numbers.
Package types defines interfaces for different types of data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Boolean ¶
type Boolean interface {
~bool
}
Boolean is an interface that represents a boolean type. It is implemented by the built-in bool type.
type Complex ¶
type Complex interface {
~complex64 | ~complex128
}
Complex is an interface that represents a complex64 or complex128 number.
type Const ¶
Const is an interface that represents a value that is either a Number, a Boolean, or a string. It is used to define constants in Go.
type Float ¶
type Float interface {
~float32 | ~float64 // The tilde (~) operator is used to specify the underlying type of a type parameter.
}
Float is an interface that represents a float32 or float64.
type Number ¶
type Number interface {
Float | UnsignedInteger | Integer | Complex
}
Number is an interface that represents any number type. It includes all the interfaces defined above.