utils

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

* @Author: Daniel TAN * @Description: * @Date: 2021-08-24 11:37:54 * @LastEditTime: 2021-08-24 12:56:19 * @LastEditors: Daniel TAN * @FilePath: /fr-price-common-pkg/core/utils/md5.go

* @Author: Daniel TAN * @Description: * @Date: 2021-08-06 10:11:31 * @LastEditTime: 2021-08-26 10:53:30 * @LastEditors: Daniel TAN * @FilePath: /fr-price-common-pkg/core/utils/string_converter.go

* @Author: Daniel TAN * @Description: * @Date: 2021-08-18 09:27:53 * @LastEditTime: 2021-08-18 09:28:00 * @LastEditors: Daniel TAN * @FilePath: /fr-price-common-pkg/core/utils/type_converter.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNonce

func GenerateNonce() (string, error)

func GetSnowflakeID added in v0.1.14

func GetSnowflakeID() int64

func MD5Content

func MD5Content(content []byte) (string, error)

func MustFormatTime

func MustFormatTime(layout string, timeString string) *time.Time

func MustJSONMarshal

func MustJSONMarshal(obj interface{}) string

func MustParseBool

func MustParseBool(boolString string) bool

func MustParseFloat64

func MustParseFloat64(floatString string) float64

func MustXMLMarshal

func MustXMLMarshal(obj interface{}) string

func StringConverter

func StringConverter(word string, destVal *reflect.Value) error

StringConverter

@word the word need to be converted
@destVal the target value need to convert to

stringConverter will convert to destVal according to
the type of destVal

Types

This section is empty.

Jump to

Keyboard shortcuts

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