utils

package
v0.3.2-ms1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package utils provides general utility methods. The '*Ptr' functions were borrowed/inspired by the kubernetes go-client.

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 GetCallerFileLine added in v0.3.0

func GetCallerFileLine() (string, int)

func GetCallerName added in v0.3.0

func GetCallerName(up int) string

GetCallerName retrieves the name of the function prior to the location it is called

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr returns a pointer to an int64

func ReformatError added in v0.3.0

func ReformatError(e string, v ...interface{}) error

utils.ReformatError prefixes the error string ready for logging and/or output

func StringPtr

func StringPtr(s string) *string

StringPtr returns a pointer to the passed string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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