Documentation ¶
Index ¶
- Constants
- func CheckErr(err error)
- func GetBuff() *bytes.Buffer
- func IfVal(condition bool, trueVal, falseVal interface{}) interface{}
- func PutBuff(buffer *bytes.Buffer)
- func Try(fn func(), catch func(e interface{}), finally ...func())
- func WithLockContext(fn func())
- func WithRunTimeContext(closer func(), callback func(time.Duration))
Constants ¶
View Source
const BuffSize = 10 * 1024
Variables ¶
This section is empty.
Functions ¶
func IfVal ¶
func IfVal(condition bool, trueVal, falseVal interface{}) interface{}
IfVal Simulate ternary calculations, pay attention to handling no variables or indexing problems
func WithLockContext ¶
func WithLockContext(fn func())
func WithRunTimeContext ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.