# README
go-tools.v2
# 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
No description provided by the author
No description provided by the author
No description provided by the author
BD09toGCJ02 百度坐标系->火星坐标系.
BD09toWGS84 百度坐标系->WGS84坐标系.
BytesToData 将数据转换为自定义类型
*/.
No description provided by the author
Contains 判断字符串是否包含在数组中.
DataToBytes 将数据转换为[]byte
支持的类型:
bool/*bool/[]bool
int8/*int8/[]int8
uint8/*uint8/[]uint8
int16/*int16/[]int16
uint16/*uint16/[]uint16
int32/*int32/[]int32
uint32/*uint32/[]uint32
int64/*int64/[]int64
uint64/*uint64/[]uint64
float32/*float32/[]float32
float64/*float64/[]float64
*/.
Equal 比较两个字符串数组是否相同 flag: 是否顺序也必须相同.
No description provided by the author
FileUploadIO 文件上传
reader: 文件流
name: 文件名,例如1.jpg
*/.
No description provided by the author
字符串格式化
1.
No description provided by the author
GCJ02toBD09 火星坐标系->百度坐标系.
GCJ02toWGS84 火星坐标系->WGS84坐标系.
No description provided by the author
InterfaceToString 将基础类型数据转换为string.
No description provided by the author
No description provided by the author
JSONString 以json格式输出struct对象,format判断时间将json格式化.
No description provided by the author
No description provided by the author
No description provided by the author
Merge 将多个map合并为一个新的map.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Pinyin 中文转拼音,例如:“你好” => “nihao”.
PINYIN 中文转拼音,例如:“你好” => “NIHAO”.
PKCS7Padding 补码.
PKCS7UnPadding 去码.
No description provided by the author
No description provided by the author
No description provided by the author
Py 中文转拼音,例如:“你好” => “nh”.
PY 中文转拼音,例如:“你好” => “NH”.
No description provided by the author
RftInterfaceInfo 反射出一个对象的所有属性和值.
No description provided by the author
RftTypeInfo 反射出对象的属性.
No description provided by the author
No description provided by the author
RunWithContext 循环执行任务,直到context关闭.
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
StrOfRand 取固定长度的随机字符串 flag 自否可包含特殊字符.
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
UUID 就是一个36位的UUID.
UUID_ 将 UUID 的”横杠“替代为”下划线“.
No description provided by the author
No description provided by the author
WaitRoutineN 同时开启多个Routine执行任务.
WGS84toBD09 WGS84坐标系->百度坐标系.
WGS84toGCJ02 WGS84坐标系->火星坐标系.
No description provided by the author
# Structs
No description provided by the author
RftTypeInfoView,解析对象的结果,
FullName 表示实例的全名,例如: make([]string,0) => []string
Name 表示实例名称,例如: make([]string,0) => string
PkgPath 表示最终引用对象的包路径
Type 表示最终引用对象的类型,可以反射出一个新的实例
示例:RftTypeInfo(make([]*RftTypeInfoView,0))
结果: {"name":"RftTypeInfoView","full_name":"[]*RftTypeInfoView","pkg_path":"github.com/zhanghup/go-tools.v2"}
*/.
# Type aliases
StringMap
将一个map对象格式化成一个string,例如:
map[string]string{"name":"test","age": "123"} => name:test,age:123
*/.