Documentation
¶
Index ¶
- Constants
- Variables
- func GenUuid() string
- func ImageToiMutiFile(img image.Image, t string) (f multipart.File, hash string, err error)
- func MD5(s string) (hash string)
- func MergeStruct(dst, src interface{}) error
- func MultipartFileHash(file multipart.File) (hash string, err error)
- func Pinyin(s string) (ret string)
- func ScryptString(s string, salt string) (dk []byte, err error)
- func StrcutValid(v interface{}) (err error)
- func UpdateStruct(input interface{}, source interface{}) (err error)
- func UuidValid(s string) bool
- type Reader
Constants ¶
View Source
const (
StructStringMaxDefault = 1024000
)
Variables ¶
Functions ¶
func ImageToiMutiFile ¶
图片对象转文件对象 返回multipart.File类型和sha1值
func MultipartFileHash ¶
multipart文件hash
func ScryptString ¶
scrypt string to key bit arrary
func UpdateStruct ¶
func UpdateStruct(input interface{}, source interface{}) (err error)
update structure whith map
Types ¶
type Reader ¶
func (*Reader) ReadOneline ¶
读行,每次返回完整的一行
Click to show internal directories.
Click to hide internal directories.