Documentation
¶
Index ¶
- func Base64EncodeFormByte(bin []byte) []byte
- func Base64EncodeUrlSafe(bin []byte) string
- func EachMapSort(eachMap interface{}, eachFunc interface{}) error
- func GetInterfaceFiledValue(v interface{}, fieldName string) reflect.Value
- func GetSelfIps() map[string]map[string]string
- func GetSelfPath() string
- func GetSelfPathFull() string
- func GetSelfV4IFaceFirst() string
- func GetSelfV4IpFirst(iFace ...string) string
- func GetSelfV4Ips() map[string]string
- func GetSelfV6IFaceFirst() string
- func GetSelfV6IpFirst(iFace ...string) string
- func GetSelfV6Ips() map[string]string
- func InterfaceToStruct(out interface{}, in interface{}) error
- func MakeInstanceFromSlice(v interface{}) (i interface{}, err error)
- func MapFind[M ~map[K]E, ...](m M, f func(E, K) bool) (e E, k K)
- func MapStringValues(m map[string]string) (v []string)
- func ReTry(callback func() bool, times int, step time.Duration)
- func ReverseBits(b byte) byte
- func RunningOs(osName ...string) string
- func SliceContains[S ~[]E, E any](s S, e E) bool
- func SliceFilter[S ~[]E, E any](s S, f func(E) bool) (s1 S)
- func SliceFind[S ~[]E, E any](s S, f func(E) bool) (e E)
- func SlicePop[S ~*[]E, E any](s S) (e E)
- func SliceShift[S ~*[]E, E any](s S) (e E)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base64EncodeFormByte ¶
func Base64EncodeUrlSafe ¶
func EachMapSort ¶
func EachMapSort(eachMap interface{}, eachFunc interface{}) error
func GetInterfaceFiledValue ¶
func GetSelfIps ¶
func GetSelfPath ¶
func GetSelfPath() string
func GetSelfPathFull ¶
func GetSelfPathFull() string
func GetSelfV4IFaceFirst ¶
func GetSelfV4IFaceFirst() string
func GetSelfV4IpFirst ¶
func GetSelfV4Ips ¶
func GetSelfV6IFaceFirst ¶
func GetSelfV6IFaceFirst() string
func GetSelfV6IpFirst ¶
func GetSelfV6Ips ¶
func InterfaceToStruct ¶
func InterfaceToStruct(out interface{}, in interface{}) error
func MakeInstanceFromSlice ¶
func MakeInstanceFromSlice(v interface{}) (i interface{}, err error)
func MapStringValues ¶
func ReverseBits ¶
func SliceContains ¶
func SliceFilter ¶
func SliceShift ¶
func SliceShift[S ~*[]E, E any](s S) (e E)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.