gconv

package
v1.2024.116 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

类型转换. 如果给定的interface{}参数不是指定转换的输出类型,那么会进行强制转换,效率会比较低, 建议已知类型的转换自行调用相关方法来单独处理。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(i interface{}) bool

false: "", 0, false, off

func Bytes

func Bytes(i interface{}) []byte

func Float32

func Float32(i interface{}) float32

func Float64

func Float64(i interface{}) float64

func Int

func Int(i interface{}) int

func String

func String(i interface{}) string

func Strings

func Strings(i interface{}) []string

func Uint

func Uint(i interface{}) uint

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL