Documentation ¶
Overview ¶
Package param provide some util for param parse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureBool ¶
EnsureBool 判断给定的p是否可表示为合法Bool类型,否则返回defaultVal
支持的合法类型有
type bool
type gjson.True or gjson.False
type string "true","yes","1" or "false","no","0" (case insensitive)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.