common

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Atoi32

func Atoi32(s string) (int32, error)

Atoi32 converts string to int32 in a safe way. You get error when the value is out of the 32-bit range.

This is a wrapper function of strconv.ParseInt.

func FalsePtr

func FalsePtr() *bool

FalsePtr returns a pointer to True

func Int32

func Int32(i int) (int32, error)

Int32 converts int to int32 in a safe way. You get error when the value is out of the 32-bit range.

func Int32Ptr

func Int32Ptr(n int) *int32

Int32Ptr returns a pointer to an int32 version of n

func Int64Ptr

func Int64Ptr(n int64) *int64

Int64Ptr returns a pointer to an int64

func StringPtr

func StringPtr(str string) *string

StringPtr returns a pointer to True

func TruePtr

func TruePtr() *bool

TruePtr returns a pointer to True

Types

This section is empty.

Jump to

Keyboard shortcuts

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