internal

package
v0.0.0-...-34a6c7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr --

func CastValueTo

func CastValueTo(v interface{}, vType reflect.Type, ptr bool) interface{}

CastValueTo -- convert value from string to specific reflect.Type

func Deref

func Deref(t reflect.Type) reflect.Type

Deref --

func Float32Ptr

func Float32Ptr(f float32) *float32

Float32Ptr --

func Float64Ptr

func Float64Ptr(f float64) *float64

Float64Ptr --

func GetBaseType

func GetBaseType(t reflect.Type, expected reflect.Kind) (reflect.Type, error)

GetBaseType --

func GetTimeByUnit

func GetTimeByUnit(ts int64, unit string) time.Time

func Int16Ptr

func Int16Ptr(i int16) *int16

Int16Ptr --

func Int32Ptr

func Int32Ptr(i int32) *int32

Int32Ptr --

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr --

func Int8Ptr

func Int8Ptr(i int8) *int8

Int8Ptr --

func IntPtr

func IntPtr(i int) *int

IntPtr --

func IsStringSliceContains

func IsStringSliceContains(sl []string, s string) bool

IsStringSliceContains --

func IsZeroOfUnderlyingType

func IsZeroOfUnderlyingType(x interface{}) bool

IsZeroOfUnderlyingType --

func StringPtr

func StringPtr(s string) *string

StringPtr --

func TimestampByUnit

func TimestampByUnit(t time.Time, unit string) int64

func TrimedSpaceStringSlice

func TrimedSpaceStringSlice(s, sep string) []string

TrimedSpaceStringSlice -- slice string by seperate and trim space

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL