Documentation ¶
Index ¶
- Constants
- func ChangeStructFields(structPtr interface{}, changesMap map[string]interface{})
- func Convert(value interface{}, t reflect.Kind) (interface{}, error)
- func FormatIntToByte(b int64) string
- func FromBase64(valuea ...interface{}) string
- func FromTime(time time.Time) string
- func IsBool(input interface{}) bool
- func IsEmpty(valuea ...interface{}) bool
- func IsFloat(input interface{}) bool
- func IsInt(input interface{}) bool
- func IsKind(valuea ...interface{}) bool
- func IsNillable(input interface{}) bool
- func IsPtr(obj interface{}) bool
- func IsString(input interface{}) bool
- func IsTime(input interface{}) bool
- func OfKind(valuea ...interface{}) string
- func OfType(valuea ...interface{}) string
- func RuneWidth(r rune) int
- func SetField(structPtr interface{}, k string, v interface{})
- func SetStructField(structPtr interface{}, name string, value interface{}) error
- func ToBase64(valuea ...interface{}) string
- func ToBool(valuea ...interface{}) bool
- func ToBytes(valuea ...interface{}) []byte
- func ToCamelCase(str string) string
- func ToDuration(valuea ...interface{}) time.Duration
- func ToFixedLengthAfter(str string, spacer string, length int) string
- func ToFixedLengthBefore(str string, spacer string, length int) string
- func ToFixedLengthCenter(str string, spacer string, length int) string
- func ToFloat(valuea ...interface{}) float64
- func ToFloat32(valuea ...interface{}) float32
- func ToFloatFromXString(valuea ...string) float64
- func ToIP(valuea ...interface{}) net.IP
- func ToInt(valuea ...interface{}) int
- func ToInt16(valuea ...interface{}) int16
- func ToInt32(valuea ...interface{}) int32
- func ToInt64(valuea ...interface{}) int64
- func ToInt8(valuea ...interface{}) int8
- func ToMapInterfaceFromMapString(src map[string]string) map[string]interface{}
- func ToMapStringFromMapInterface(src map[interface{}]interface{}) map[string]interface{}
- func ToRuneLength(valuea ...interface{}) int
- func ToSlice(valuea ...interface{}) []interface{}
- func ToSliceInterface(iface ...interface{}) (ret []interface{})
- func ToString(valuea ...interface{}) string
- func ToStringMap(valuea ...interface{}) map[string]interface{}
- func ToStringMapString(valuea ...interface{}) map[string]string
- func ToStringSlice(valuea ...interface{}) []string
- func ToTime(simple bool, valuea ...interface{}) time.Time
- func ToUint(valuea ...interface{}) uint64
- func Trimmed(valuea ...interface{}) string
- func TypeName(v interface{}) string
- func Width(str string) int
Constants ¶
View Source
const ( KindTime reflect.Kind = iota + 1000000000 KindDuration )
View Source
const ( B = 1 << (10 * iota) KB MB GB TB PB EB )
Variables ¶
This section is empty.
Functions ¶
func ChangeStructFields ¶
func ChangeStructFields(structPtr interface{}, changesMap map[string]interface{})
ChangeStruct applies map of changes to struct
func FormatIntToByte ¶
func FromBase64 ¶
func FromBase64(valuea ...interface{}) string
func IsNillable ¶
func IsNillable(input interface{}) bool
func SetStructField ¶
func ToCamelCase ¶
func ToDuration ¶
func ToFloatFromXString ¶
func ToMapStringFromMapInterface ¶
func ToMapStringFromMapInterface(src map[interface{}]interface{}) map[string]interface{}
func ToRuneLength ¶
func ToRuneLength(valuea ...interface{}) int
func ToSliceInterface ¶
func ToSliceInterface(iface ...interface{}) (ret []interface{})
func ToStringMap ¶
func ToStringMap(valuea ...interface{}) map[string]interface{}
func ToStringMapString ¶
func ToStringSlice ¶
func ToStringSlice(valuea ...interface{}) []string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.