number

package
v1.2.3 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToInt

func ToInt(str string) int

ToInt str to int,如果转换失败,默认值为0 str 字符串

func ToInt64

func ToInt64(str string) int64

ToInt64 str to int64,如果转换失败,默认值为0 str 字符串

func ToInt64ByDefault

func ToInt64ByDefault(str string, def int64) int64

ToInt64ByDefault str to int64 str 字符串 def 如果转换失败使用的默认值

func ToIntByDefault

func ToIntByDefault(str string, def int) int

ToIntByDefault str to int str 字符串 def 如果转换失败使用的默认值

Types

This section is empty.

Jump to

Keyboard shortcuts

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