converter

package
v2.6.3 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DateStringToTime

func DateStringToTime(t string) time.Time

DateStringToTime

func IntToString

func IntToString(num int) string

func InterfaceGetBytes

func InterfaceGetBytes(key interface{}) ([]byte, error)

InterfaceGetBytes : interface{} to bytes

func InterfaceToBytes

func InterfaceToBytes(key interface{}) ([]byte, error)

InterfaceToBytes

func InterfaceToInt64

func InterfaceToInt64(param interface{}, errorString string) (result int64, err error)

InterfaceToInt64

func InterfaceToMap

func InterfaceToMap(param interface{}) (result map[string]interface{}, err error)

func InterfaceToString

func InterfaceToString(param interface{}, errorString string) (result string, err error)

InterfaceToString :

func InterfaceToUint added in v2.2.4

func InterfaceToUint(val interface{}) (uint, error)

func MapToKeyValueSlice

func MapToKeyValueSlice(m, e map[string]interface{}) (keys, values []string)

MapToKeyValueSlice :

func MapToMap

func MapToMap(param map[string]interface{}, key, errorString string) (result map[string]interface{}, err error)

MapToMap :

func MapToStruct

func MapToStruct(m interface{}, v interface{}) (err error)

MapToStruct : map to struct

func StringToInt

func StringToInt(num string) int

StringToInt

func StringToMap

func StringToMap(jsonString string) (result map[string]interface{}, err error)

StringToMap : convert string to map string interface

func StringToMapArr

func StringToMapArr(jsonString string) (result []map[string]interface{}, err error)

StringToMapArr : convert string to map string interface array

func StringToUint

func StringToUint(num string) uint

func TimeToDateString

func TimeToDateString(t time.Time) string

TimeToDateString

func TimeToDateTimeString

func TimeToDateTimeString(t time.Time) string

TimeDateTimeString

func TimeToTimeString

func TimeToTimeString(t time.Time) string

TimeTimeString

func UintToString

func UintToString(num uint) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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