Versions in this module Expand all Collapse all v1 v1.0.2 Jul 6, 2023 Changes in this version + var DateTool = new(DateUtil) + var FileTool = new(FileUtils) + var JsonTool = new(JSONUtil) + var LogStackTool = new(LogStack).filter("go_base") + var StringTool = new(StringUtils) + type Cache struct + func (c *Cache) Create() + func (c *Cache) Delete(keys ...string) error + func (c *Cache) Get(key string) (string, error) + func (c *Cache) Set(key string, value string, exTime time.Duration) error + type DateUtil struct + func (d *DateUtil) GetCurrentTime(format string) (string, error) + type EmailReq struct + Body string + From string + FromPassword string + Host string + Subject string + To string + type Field struct + ColumnName string + DataType string + TableName string + TableSchema string + type FileUtils struct + func (f *FileUtils) ReadBytes(fPath string) []byte + type JSONUtil struct + func (*JSONUtil) ToObject(str string, obj any) any + func (*JSONUtil) ToString(obj any) string + type LogStack struct + func (s *LogStack) Stack(msg string) []string + type Mail struct + func (m *Mail) SendMail(emailReq EmailReq) error + type StringUtils struct + func (s *StringUtils) Contain(str string, substr string) bool + func (s *StringUtils) CreateUUID() string + func (s *StringUtils) Eq(str1 string, str2 string) bool + func (s *StringUtils) HumpToUnderLine(str string) string + func (s *StringUtils) IsBlank(str string) bool + func (s *StringUtils) IsEmpty(str string) bool + func (s *StringUtils) IsNotBlank(str string) bool + func (s *StringUtils) IsNotEmpty(str string) bool + func (s *StringUtils) Join(strs []string, sep string) string + func (s *StringUtils) Len(str string) int + func (s *StringUtils) NotEq(str1 string, str2 string) bool + func (s *StringUtils) ReplaceAll(str string, old string, new string) string + func (s *StringUtils) Split(str string, sep string) []string + func (s *StringUtils) UnderLineToHump(str string, firstToUpper bool) string