convert

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2022 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(v bool) *bool

BoolPtr makes a copy and returns the pointer to a bool.

func Int16Ptr

func Int16Ptr(v int16) *int16

Int16Ptr makes a copy and returns the pointer to an int16.

func Int32Ceil

func Int32Ceil(v float64) int32

Int32Ceil return the int32 ceil of a float64

func Int32Ptr

func Int32Ptr(v int32) *int32

Int32Ptr makes a copy and returns the pointer to an int32.

func Int32ToString added in v1.0.0

func Int32ToString(v int32) string

func Int64Ceil

func Int64Ceil(v float64) int64

Int64Ceil return the int64 ceil of a float64

func Int64Ptr

func Int64Ptr(v int64) *int64

Int64Ptr makes a copy and returns the pointer to an int64.

func Int64SetToSlice added in v1.9.0

func Int64SetToSlice(
	inputs map[int64]struct{},
) []int64

func Int64SliceToSet added in v1.9.0

func Int64SliceToSet(
	inputs []int64,
) map[int64]struct{}

func Int64ToString added in v1.0.0

func Int64ToString(v int64) string

func IntPtr

func IntPtr(v int) *int

IntPtr makes a copy and returns the pointer to an int.

func IntToString added in v1.0.0

func IntToString(v int) string

func StringPtr

func StringPtr(v string) *string

StringPtr makes a copy and returns the pointer to a string.

func StringSetToSlice added in v1.9.0

func StringSetToSlice(
	inputs map[string]struct{},
) []string

func StringSliceToSet added in v1.9.0

func StringSliceToSet(
	inputs []string,
) map[string]struct{}

func Uint16ToString added in v1.1.0

func Uint16ToString(v uint16) string

func Uint64ToString added in v1.0.0

func Uint64ToString(v uint64) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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