Documentation ¶
Index ¶
- Constants
- type Bytes
- type Charset
- type Json
- type Str
- func (*Str) Contains(str string, strs []string) bool
- func (*Str) EncloseIgnoreCase(text, open, close string, searchStrs ...string) string
- func (*Str) PYSort(strArr []string) []string
- func (*Str) ReplaceEmpty(str string, rep ...string) string
- func (*Str) ReplaceIgnoreCase(text, searchStr, repl string) string
- func (*Str) ReplaceRegexpStrEmpty(str string, math ...string) string
- func (*Str) ReplacesIgnoreCase(text string, searchStrRepl ...string) string
- func (*Str) SplitByNum(txt string, length int) []string
- func (*Str) SubStr(str string, length int) string
- func (*Str) ToBytes(s string) []byte
- func (obj *Str) ToDateStr(t string) (string, error)
- func (*Str) ToFloat64(s string) (float64, error)
- func (*Str) ToInt(s string) (int, error)
- func (*Str) ToInt64(s string) (int64, error)
- func (*Str) ToTime(s string) (time.Time, error)
- func (obj *Str) ToTimeStr(s string) (string, error)
Constants ¶
View Source
const ( UTF8 = Charset("UTF-8") GB18030 = Charset("GB18030") )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Json ¶
type Json struct { }
func (*Json) MarshalIndentJSON ¶
func (*Json) MarshalJSON ¶
func (*Json) UnmarshalJSON ¶
type Str ¶
type Str struct { }
func (*Str) EncloseIgnoreCase ¶
Enclose encloses search strings with open and close, case-insensitively.
func (*Str) ReplaceIgnoreCase ¶
ReplaceIgnoreCase replace searchStr with repl in the text, case-insensitively.
func (*Str) ReplaceRegexpStrEmpty ¶
字符串正则替换
func (*Str) ReplacesIgnoreCase ¶
ReplacesIgnoreCase replace searchStr-repl pairs in the text, case-insensitively.
Click to show internal directories.
Click to hide internal directories.