The highest tagged major version is
v2.
package
Version:
v1.13.10
Opens a new window with list of versions in this module.
Published: Mar 29, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
BoolToString 类型转换: bool => string
e.g.
(true) => "true"
(false) => "false"
func ParseToBoolWithDefault(src interface{}, def bool) bool
StringToBool 类型转换: string => bool
PS: 参考了 strconv.ParseBool()、Java hutool中的BooleanUtil.toBoolean().
func ToBool(obj interface{}) bool
ToBool
e.g.
(nil) => false
ToBoolE
e.g.
(nil) => false, nil
Source Files
¶
Click to show internal directories.
Click to hide internal directories.