Documentation ¶
Index ¶
- Variables
- func HasChinese(str string) bool
- func M1(a, b interface{}) []interface{}
- func M2(a, b interface{}) []interface{}
- func M3(a, b, c interface{}) []interface{}
- func M4(a, b, c, d interface{}) []interface{}
- func M5(a, b, c, d interface{}) []interface{}
- func TmplRenderText(tmpl string, data interface{}) (string, error)
- type GoroutineID
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Unmarshal = jsoniter.Unmarshal Marshal = jsoniter.Marshal MarshalIndent = jsoniter.MarshalIndent )
nolint:gochecknoglobals
View Source
var (
DebugGoroutines = os.Getenv("DEBUG_GOROUTINES") == "1"
)
nolint:gochecknoglobals
Functions ¶
func HasChinese ¶
func TmplRenderText ¶
TmplRenderText renders the tmpl template with data.
Types ¶
type GoroutineID ¶
type GoroutineID string
GoroutineID is the goroutine ID's presentation.
func CurGoroutineID ¶
func CurGoroutineID() GoroutineID
CurGoroutineID returns the current goroutine ID.
func NewGoroutineLock ¶
func NewGoroutineLock() GoroutineID
NewGoroutineLock return a new goroutine lock.
func (GoroutineID) Check ¶
func (g GoroutineID) Check()
Check checks that the current goroutine is on.
func (GoroutineID) CheckNotOn ¶
func (g GoroutineID) CheckNotOn()
CheckNotOn checks that the current goroutine is not on.
func (GoroutineID) Uint64 ¶
func (g GoroutineID) Uint64() uint64
Uint64 return current goroutine ID's uint64 type.
Click to show internal directories.
Click to hide internal directories.