Documentation ¶
Index ¶
- Variables
- type Cache
- type DateUtil
- type EmailReq
- type Field
- type FileUtils
- type JSONUtil
- type LogStack
- type Mail
- type StringUtils
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var DateTool = new(DateUtil)
DateTool 时间工具
View Source
var FileTool = new(FileUtils)
FileTool 获取文件处理工具
View Source
var JsonTool = new(JSONUtil)
JsonTool 获取文件处理工具
View Source
var LogStackTool = new(LogStack).filter("go_base")
LogStackTool 只获取当前项目的异常栈
View Source
var StringTool = new(StringUtils)
StringTool 获取文件处理工具
Functions ¶
This section is empty.
Types ¶
type EmailReq ¶
type EmailReq struct { //接收人邮箱 To string //发送人邮箱 From string //发送人密码 FromPassword string //邮箱服务 ip+端口 Host string //邮件表头 Subject string //邮件内容 Body string }
EmailReq 邮件信息
type StringUtils ¶
type StringUtils struct { }
func (*StringUtils) Contain ¶
func (s *StringUtils) Contain(str string, substr string) bool
Contain 是否包含字符串
func (*StringUtils) HumpToUnderLine ¶
func (s *StringUtils) HumpToUnderLine(str string) string
HumpToUnderLine 下划线转驼峰
func (*StringUtils) IsNotBlank ¶
func (s *StringUtils) IsNotBlank(str string) bool
IsNotBlank 判断不为空(去掉空格之后)
func (*StringUtils) ReplaceAll ¶
func (s *StringUtils) ReplaceAll(str string, old string, new string) string
ReplaceAll 是否包含字符串
func (*StringUtils) UnderLineToHump ¶
func (s *StringUtils) UnderLineToHump(str string, firstToUpper bool) string
UnderLineToHump 驼峰转下划线
Click to show internal directories.
Click to hide internal directories.