Versions in this module Expand all Collapse all v0 v0.0.2 Oct 18, 2022 Changes in this version + func CurrentDataCompactStr() string + func CurrentDateStr() string + func CurrentDateTimeStr() string + func CurrentTimeCompactStr() string v0.0.1 Dec 8, 2021 Changes in this version + const AlgMd5 + const AlgSha1 + const AlgSha256 + const BoxSizeRateMin + const ImageQueryBoxSizeRateMin + var Reader io.Reader + var UUIDRegexp = regexp.MustCompile(...) + func CheckSum(data []byte) uint32 + func CreateDir(path string, mode os.FileMode) error + func CreateDirIfNotExists(path string, mode os.FileMode) error + func CurrentDateInSeconds() int64 + func CurrentTimeStr() string + func DaysBefore(days int) int64 + func Decode(jsonStr string, v interface{}) + func DecodeBytes(jsonBytes []byte, v interface{}) error + func DecodeFile(file string, v interface{}) error + func DeleteFile(path string) bool + func DeleteFiles(path string) bool + func Encode(v interface{}) string + func EncodeBytes(v interface{}) []byte + func EncodeObj(v interface{}, file string) error + func FileCheckSum(file string) uint32 + func FileExists(path string) bool + func Float32Round(f float32, pOffset int64) float32 + func GetTimeInSeconds(timeString string) int64 + func HashUUID(bs []byte) string + func ImagEmpty(a []uint8) float32 + func ImageColorId(im image.Image) uint64 + func ImageHashContentRate(a uint64) float32 + func ImageHashDiff(a, b uint64) float32 + func ImageHashId(im image.Image, bs []byte) (image.Image, image.Image, uint64, error) + func ImageHashNull(a uint64) uint8 + func ImageMaskAllow(masks [][]float32, x, y int, w, h int) bool + func ImagePixGray(im image.Image, x, y int) uint8 + func ImageSimilarity(a, b []uint8) float32 + func ImageTag(m image.Image, tagSpace int) []uint8 + func ImgBytesDecode(bs []byte) (image.Image, error) + func ImgShmBytes(file string) ([]byte, error) + func IsValidUUID(UUID string) bool + func NewEmailSender(user, password, server string) (*email, error) + func RandUUID() string + func SplitSeconds(seconds int64) (int64, int64) + func TimeRingFromDaysAgo(days int) *ring.Ring + func TransTimeFormat(timeString string) string + type EmailOption func(email *email) + func Bcc(bcc string) EmailOption + func Cc(cc string) EmailOption + func ReplyTo(replyTo string) EmailOption + func ReturnPath(returnPath string) EmailOption + func Subject(subject string) EmailOption + func UserName(name string) EmailOption + type Message struct + func AttachmentMessage(name, filePath, contentId string) *Message + func HtmlMessage(format string, args ...interface{}) *Message + func TextMessage(format string, args ...interface{}) *Message