utils

package
v0.0.0-...-360893f Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2016 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNil = errors.New("nil or type error")

数据类型转换

Functions

func Float64

func Float64(reply interface{}, err error) (float64, error)

func GetUrl

func GetUrl(url string) (string, error)

获取http请求

func Inet_aton

func Inet_aton(ipnr net.IP) int64

func Inet_ntoa

func Inet_ntoa(ipnr int64) net.IP

func Input

func Input(val string) string

func Input_val

func Input_val(val string) string

过滤函数

func Int

func Int(reply interface{}, err error) (int, error)

func Int64

func Int64(reply interface{}, err error) (int64, error)

func IsLan

func IsLan(ipAddr string) bool

func Md5

func Md5(val string) string

func Rand

func Rand(max int) int

随机数

func SendQueueMsg

func SendQueueMsg(data map[string]string) error

func String

func String(reply interface{}, err error) (string, error)

func Trace

func Trace(msg string)

func Urldecode

func Urldecode(val string) string

func Urlencode

func Urlencode(val 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