# Packages
No description provided by the author
# Functions
GetMapValueByStringKey 将字符串转换为map,并根据指定的key获取值.
HTTPGet get 请求.
HTTPGetContext get 请求.
HTTPPost post 请求.
HTTPPostContext post 请求.
MapHasKey 判断map是否有key.
MapStringInterfaceToStringString map[string]interface{} 转换为 map[string]string.
No description provided by the author
PostFile 上传文件.
PostJSON post json 数据请求.
PostJSONWithRespContentType post json数据请求,且返回数据类型.
PostMultipartForm 上传文件或其他多个字段.
PostXML perform a HTTP/POST request with XML body.
PostXMLWithTLS perform a HTTP/POST request with XML body and TLS.
Run runs your Service.
StructAssign 将两个不同的结构体中的字段进行映射赋值,目前只支持基本类型的字段赋值 这个方法可以将结构体A中与结构体B相同的字段映射赋值给结构体B。它将遍历结构体A的所有字段,查找和结构体B中名称和类型完全相同的字段,并将结构体A中的值赋给结构体B中的字段。 请注意,此方法只能用于基本类型的字段赋值。如果结构体中包含嵌套结构体或者切片、映射等非基本类型的字段,将会报错。 参数 a: 为source结构体,b: 为target结构体 StructAssign函数用于将一个结构体的值赋值到另一个结构体中.
ToMapStringString ToMapToMapStringString 将结构体转换map[string]string.
ToStruct 将json字符串转换为struct.
# Constants
ErrMapKeyNotExist 不存在key.
# Variables
No description provided by the author
# Interfaces
Context interface contains an optional Context function which a Service can implement.
Environment contains information about the environment your application is running in.
Handler is an optional interface a Service can implement.
Service interface contains Start and Stop methods which are called when the service is started and stopped.
# Type aliases
No description provided by the author