Categorygithub.com/pefish/go-format
modulepackage
0.5.1
Repository: https://github.com/pefish/go-format.git
Documentation: pkg.go.dev

# README

go-format

Description

类型或格式转换工具

Start

var a *float64
b := 0.34
a = &b
test.Equal(t, "0.34", Reflect.ToString(a))

type BType struct {
    B1 int
}
a1 := struct {
    A string
    B BType
}{`1`, BType{2}}
test.Equal(t, "{1 {2}}", Reflect.ToString(a1))



type Test struct {
    Test1 *string `json:"test1"`
}
test_ := Test{}
test.Equal(t, "*nil", Reflect.ToString(test_.Test1))



a2 := 625462456
test.Equal(t, "625462456", Reflect.ToString(a2))



a3 := 0xf43f2
test.Equal(t, "1000434", Reflect.ToString(a3))

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

驼峰单词转下划线单词.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
对数据进行编码,每次编码结果不一样,但是都可以自解码出原来的明文.
FetchTags @Description: 通过反射获取所有 tag 值,只搜寻一层。 支持 []*Test{}、*[]*Test{}、Test{}、*Test{}、[]Test{}、*[]Test{} @param interf @param tag @return []string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
下划线单词转为驼峰单词.