utils

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 6, 2020 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBool

func GetBool(v *bool) (bool, bool)

GetBool is a helper routine that returns a boolean representing if a value was set, and if so, dereferences the pointer to it.

func GetIntOk

func GetIntOk(v *int) (int, bool)

GetInt is a helper routine that returns a boolean representing if a value was set, and if so, dereferences the pointer to it.

func GetJsonNumberOk

func GetJsonNumberOk(v *json.Number) (json.Number, bool)

GetJsonNumber is a helper routine that returns a boolean representing if a value was set, and if so, dereferences the pointer to it.

func GetStringOk

func GetStringOk(v *string) (string, bool)

GetString is a helper routine that returns a boolean representing if a value was set, and if so, dereferences the pointer to it.

func JsonNumber

func JsonNumber(v json.Number) *json.Number

JsonNumber is a helper routine that allocates a new string value to store v and returns a pointer to it.

func StringPtr

func StringPtr(v string) *string

Types

This section is empty.

Jump to

Keyboard shortcuts

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