Versions in this module Expand all Collapse all v0 v0.1.6 Oct 15, 2017 v0.1.5 Mar 12, 2017 v0.0.7 Dec 3, 2017 Changes in this version + func ComputeHmac256() string v0.0.6 Oct 22, 2017 v0.0.5 Oct 18, 2017 Changes in this version + const ADDRESS + const Byte + const COMMAND + const DATA + const EByte + const EiByte + const GByte + const GiByte + const IByte + const KByte + const KiByte + const MByte + const MiByte + const PByte + const PiByte + const TByte + const TiByte + func Bytes(s uint64) string + func ErrorParse(valid validation.Validation) string + func GenUrl(s string) (url string) + func GenUuid() (string, error) + func GetFileSize(name string) (int64, error) + func GetFullPath(name string) string + func GetHmacToken(data map[string]interface{}, key []byte) (tokenString string, err error) + func GetKey(name string) (keyData []byte) + func GetLinkPath(name string) string + func GetScript(name string) (script []byte) + func IBytes(s uint64) string + func ParseBytes(s string) (uint64, error) + func ParseHmacToken(tokenString string, key []byte) (jwt.MapClaims, error) + func Pwdhash(str string) string + func RandInt(min int, max int) int + func RandStr(strSize int, randType string) string + func RandomString(l int) string + func StringsToJson(str string) string + func Strtomd5(s string) string + type Cache struct + Cachetime int64 + Name string + Verbose bool + func (c *Cache) Clear(key interface{}) (*Cache, error) + func (c *Cache) ClearAll() (*Cache, error) + func (c *Cache) ClearGroup(group string) (*Cache, error) + func (c *Cache) Delete(key string) *Cache + func (c *Cache) Get(key string) interface{} + func (c *Cache) GetKey(key interface{}) string + func (c *Cache) IsExist(key string) bool + func (c *Cache) Put(group, key string, val interface{}) (*Cache, error) + type Request struct + Baud int + Command []byte + Device string + Line string + Result bool + Sleep int64 + StopBits int + Timeout time.Duration + type Result struct + Command []byte + Device string + Error string + ErrorCode string + Result string