Documentation
¶
Index ¶
- func Desensitization[T AnyString](str T) string
- func F()
- func Filter[T any](f func(T) bool, src []T) []T
- func FromStrings2[T any, PT Setter2[T]](s []string) []T
- func Index[T comparable](s []T, x T) int
- func Print[T any](t T)
- func Stringify[T Stringer](s []T) (ret []string)
- func Sub[T Types](t1, t2 T) T
- func Zero[T any]() T
- type Address
- type AnyString
- type ComparableHasher
- type Email
- type Integer
- type Phone
- type Queue
- type Settable
- type Setter2
- type SignedInteger
- type Stringer
- type Types
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Desensitization ¶
func FromStrings2 ¶
Types ¶
type AnyString ¶
type AnyString interface { ~string }
AnyString 就可以包括 Phone,Email,Address等类型 即: 基础类型为string的类型都可以
type ComparableHasher ¶
type ComparableHasher interface { comparable Hash() uintptr }
type Queue ¶
type Queue[T any] struct { // contains filtered or unexported fields }
泛型零值 一般使用 var zero T 有一个对象,包含一个管道属性,可以调用此对象方法压入或弹出数据
type SignedInteger ¶
联合约束元素
func SumOfSignedInteger ¶
func SumOfSignedInteger[T SignedInteger](integers []SignedInteger) SignedInteger
Click to show internal directories.
Click to hide internal directories.