# Functions
No description provided by the author
Checking a file if is exists.
Converting relative path to absolute path of file(such as socket, accesslog, errorlog) and return the file path
return "" and error if file can not opened .
Converting relative path to absolute path of file and return the file path
return "" and error if file can not opened .
Converting relative path to absolute path of file(such as socket, accesslog, errorlog) and return the file path
return "" and error if file can not opened .
Converting relative path to absolute path of file and return the file path
return "" and error if file can not opened .
CheckIpAddress checking IP address.
check the validity of port return port with nozero if the port is valid Or return 0 with error.
* convert a slice to a string with comma(,) joined.
* return a slice which from sourceStr using comma(,)split
*/.
FoundStrInSlice check if slice of string sourceStr included subStr string.
check the existence of key in dataSet, return the value of the dataSet[key] with trimspaced if the key is exist in dataSet
otherwrise return ""
*/.
GetLocalIPs get ip address set on the interfaces on the local host.
GetLocalMacs get mac information on the interfaces on the local host.
GetRequestData get query data or postform data on a Context for keys([]string)
the data on Query will be returned if there are the same key on both query and postform.
GetRequestDataArray get query array data or postform data on a Context for keys([]string)
the data on Query will be returned if there are the same key on both query and postform.
GetRequestDataMap get query array data or postform data on a Context for keys([]string)
the data on Query will be returned if there are the same key on both query and postform.
convert interface{} to int.
Strval 获取变量的字符串值 浮点型 3.0将会转换成字符串3, "3" 非数值或字符类型的变量将会被转换成JSON格式字符串.
judge a string is a ipv4 address or ipv6 address 0: invalid ip 4: IPv4 6: IPv6.
generating md5 data using data and salt.
No description provided by the author