Documentation ¶
Index ¶
- func AndroidSetTimeZone()
- func ArrayMax[T ~int | ~int8 | ~int16 | ~int32 | ~int64](array ...T) T
- func Assert(guard bool, text string)
- func BytesToString(b []byte) string
- func GetPointer[T any](v T) *T
- func In[T comparable](value T, list ...T) bool
- func Max[T ~int | ~int8 | ~int16 | ~int32 | ~int64](v1, v2 T) T
- func Min[T ~int | ~int8 | ~int16 | ~int32 | ~int64](v1, v2 T) T
- func NewWaitGroup(maxConcurrent, count int) *waitGroup
- func PointerSafeGetter[T any](v1 *T, dv T) T
- func Select[T any](condition int, values ...T) T
- func SliceUnique[T comparable](s *[]T)
- func Sort[T any](s []T, less func(T, T) bool)
- func Stack(skip int) []byte
- func StringToBytes(s string) []byte
- func TernaryOperator[T any](condition bool, trueValue, falseValue T) T
- func TernaryOperatorDo(condition bool, trueFunc, falseFunc func())
- func TernaryOperatorGet[T any](condition bool, trueValueFunc, falseValueFunc func() T) T
- func TestingHandlerError(t *testing.T, err error)
- func TestingHandlerErrorWithValue[T any](t *testing.T, getter func() (T, error)) T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AndroidSetTimeZone ¶
func AndroidSetTimeZone()
func ArrayMax ¶ added in v0.7.0
func In ¶ added in v0.9.2
func In[T comparable](value T, list ...T) bool
func NewWaitGroup ¶
func NewWaitGroup(maxConcurrent, count int) *waitGroup
NewWaitGroup maxConcurrent最大并发,count总数
func PointerSafeGetter ¶
func PointerSafeGetter[T any](v1 *T, dv T) T
PointerSafeGetter 空指针安全判定获取值 dv:默认值
func TernaryOperator ¶
TernaryOperator 三目运算
func TernaryOperatorDo ¶ added in v0.8.0
func TernaryOperatorDo(condition bool, trueFunc, falseFunc func())
TernaryOperatorDo 三目函数
func TernaryOperatorGet ¶ added in v0.8.0
TernaryOperatorGet 三目函数运算
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.