Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLogger ¶
func InitProductLogger ¶ added in v0.0.11
@param logFileName 日志文件存放目录 param maxSize 文件大小限制,单位MB param maxBackups 最大保留日志文件数量 param maxAge 日志文件保留天数
func LeftString ¶ added in v0.0.5
@title return left string ,support utf-8 and without panic when outbound
Types ¶
type FormatStringer ¶ added in v0.0.9
type FormatStringer struct {
// contains filtered or unexported fields
}
func (*FormatStringer) GetParamNames ¶ added in v0.0.9
func (f *FormatStringer) GetParamNames() []string
func (*FormatStringer) Parse ¶ added in v0.0.9
func (f *FormatStringer) Parse(content string)
parse content to parts
func (*FormatStringer) Replace ¶ added in v0.0.9
func (f *FormatStringer) Replace(paramName string, index int, newValue string)
func (*FormatStringer) ReplaceAll ¶ added in v0.0.9
func (f *FormatStringer) ReplaceAll(paramName string, newValue string)
func (*FormatStringer) String ¶ added in v0.0.9
func (f *FormatStringer) String() string
type StringPart ¶ added in v0.0.9
type StringPart struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.