utils

package
v0.0.0-...-7aae7b9 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ISO8601_FORMAT             = "2006-01-02T15:04:05Z"
	DEFAULT_TIME_MINITE_FORMAT = "2006-01-02T15:04Z"
	TIME_SECOND_FORMAT_MOD1    = "2006-01-02 15:04:05"
)

Variables

This section is empty.

Functions

func Float32ToFloat64

func Float32ToFloat64(v *float32) float64

func Hash

func Hash(x interface{}) string

func Int32Ptr

func Int32Ptr(v int32) *int32

func ParamType

func ParamType(t string) map[string]string

func ParseDefaultMiniteTime

func ParseDefaultMiniteTime(t string) int64

func ParseDefaultSecondTime

func ParseDefaultSecondTime(t string) int64

func ParseSecondMod1Time

func ParseSecondMod1Time(t string) int64

func ParseTime

func ParseTime(format, t string) int64

func PtrFloat64

func PtrFloat64(v *float64) float64

func PtrInt32

func PtrInt32(v *int32) int32

func PtrInt64

func PtrInt64(v *int64) int64

func PtrStrV

func PtrStrV(v *string) string

func SlicePtrStrv

func SlicePtrStrv(items []*string) []string

func StringPtr

func StringPtr(v string) *string

func StringToFloat64

func StringToFloat64(v *string) float64

Types

type EnumDescribe

type EnumDescribe struct {
	Name     string            `json:"name"`
	Value    string            `json:"value"`
	Describe string            `json:"describe"`
	Meta     map[string]string `json:"meta"`
	SubItems []*EnumDescribe   `json:"sub_items"`
}

Jump to

Keyboard shortcuts

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