utils

package
v0.0.0-...-69a75dd Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FlateDecompress

func FlateDecompress(data []byte) ([]byte, error)

func FloatToFixed

func FloatToFixed(v float64, precision int) float64

func FloatToString

func FloatToString(v float64, precision int) string

func GenerateOrderClientId

func GenerateOrderClientId(size int) string

func GzipDecompress

func GzipDecompress(data []byte) ([]byte, error)

func MergeOptionalParameter

func MergeOptionalParameter(values *url.Values, opts ...OptionalParameter) url.Values

func ToFloat64

func ToFloat64(v interface{}) float64

func ToInt

func ToInt(v interface{}) int

func ToInt64

func ToInt64(v interface{}) int64

func ToMapJson

func ToMapJson(input interface{}) (map[string]interface{}, error)

func ToUint64

func ToUint64(v interface{}) uint64

func ValuesToJson

func ValuesToJson(v url.Values) ([]byte, error)

Types

type OptionalParameter

type OptionalParameter map[string]interface{}

type Values

type Values map[string][]string

Jump to

Keyboard shortcuts

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