Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainAny ¶ added in v0.4.0
ContainAny contain any of list
func CountPrefix ¶ added in v0.3.0
CountPrefix 和 strings.Count 类似,不过 CountPrefix 只会统计以 substr 开头的个数
当 s=**1** substr=* 的时候,返回 2 当 substr 为空的时候,一定返回 0
func FindLastAfterSubstr ¶ added in v0.2.0
FindLastAfterSubstr 寻找字符串 s 中,匹配最后一个 substr 后的字符串
当 substr 为空的时候,必定返回空字符串 当 s==1/2/3 substr=/ 返回 3
Types ¶
type TeeWriterOption ¶
type TeeWriterOption struct { // When an error occurs when writing data in multiple writers, exit immediately, // instead of writing all the writers, // the default is false // 当在多个 writer 中写数据发生错误的时候,立刻退出,而不是将所有 writer 都写完,默认是 false BreakWhenErr bool `json:"break_when_err"` }
Click to show internal directories.
Click to hide internal directories.