convert

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Int64ToString

func Int64ToString(i int64) string

func IntToString

func IntToString(i int) string

func StringToInt

func StringToInt(s string) (int, error)

func StringToInt64

func StringToInt64(s string) (int64, error)

func StringsDictToDict added in v0.1.14

func StringsDictToDict(in url.Values) (out dict.Dict)

map[string][]string -> map[string]interface{}

func StringsDictToStringDict added in v0.1.14

func StringsDictToStringDict(in url.Values) (out dict.StringDict)

注意: 这个方法不安全, 要确定 值, 只有一个才可以使用, 否则丢数据

func StructToDict added in v0.1.14

func StructToDict(in interface{}) (out dict.Dict)

go struct to map[string]interface{}

func StructToStringDict added in v0.1.14

func StructToStringDict(in interface{}) (out dict.StringDict, err error)

go struct to map[string]string

func StructToStringsDict added in v0.1.14

func StructToStringsDict(in interface{}) (out url.Values, err error)

go struct to map[string][]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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