Documentation ¶
Index ¶
- Variables
- func CheckBcrypt(hashed string, nohashed string) bool
- func CreateBcrypt(str string) (string, error)
- func CreateMd5(str string) string
- type Tool
- func (t *Tool) FloatToStr(f float64) string
- func (t *Tool) GBK2UTF8(s []byte) ([]byte, error)
- func (t *Tool) GetRandomString(n int) string
- func (t *Tool) IntToStr(i int) string
- func (t *Tool) StrToInt(str string, def int) (int, error)
- func (t *Tool) StructToMap(obj interface{}) map[string]interface{}
- func (t *Tool) StructToStr(data interface{}) (string, error)
- func (t *Tool) SubString(str string, start, length int) string
- func (t *Tool) TimeFormat(time *time.Time, format string) string
- func (t *Tool) UTF82GB2312(s []byte) ([]byte, error)
- func (t *Tool) UTF82GBK(s []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Tools = New()
Functions ¶
Types ¶
type Tool ¶
type Tool struct { }
Click to show internal directories.
Click to hide internal directories.