types

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr returns a pointer to a bool

func FindString

func FindString(target string, slice ...string) bool

FindString return true if target in slice, return false if not

func FindStringVague

func FindStringVague(target string, slice ...string) bool

FindStringVague return true if target is a sub string of strings in slice, return false if not

func Int32Ptr

func Int32Ptr(i int32) *int32

Int32Ptr returns a pointer to an int32

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr returns a pointer to an int64

func StringPtr

func StringPtr(s string) *string

StringPtr returns a pointer to the passed string.

func TimePtr added in v0.0.5

func TimePtr(time time.Time) *time.Time

TimePtr returns a pointer to the passed time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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