package
Version:
v1.2024.116
Opens a new window with list of versions in this module.
Published: Jan 16, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
类型转换.
如果给定的interface{}参数不是指定转换的输出类型,那么会进行强制转换,效率会比较低,
建议已知类型的转换自行调用相关方法来单独处理。
func Bool(i interface{}) bool
false: "", 0, false, off
func Bytes(i interface{}) []byte
func Float32(i interface{}) float32
func Float64(i interface{}) float64
func Int(i interface{}) int
func String(i interface{}) string
func Strings(i interface{}) []string
func Uint(i interface{}) uint
Source Files
¶
Click to show internal directories.
Click to hide internal directories.