util

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValidConfig = errors.New("HandleParseErrors called with a valid config")
)

Functions

func BoolToPtr

func BoolToPtr(b bool) *bool

func HandleParseErrors

func HandleParseErrors(rawConfig []byte) (report.Report, error)

HandleParseErrors will attempt to unmarshal an invalid rawConfig into the latest config struct, so as to generate a report.Report from the errors. It will always return an error. This is called after config/v* parse functions chain has failed to parse a config.

func IntToPtr

func IntToPtr(x int) *int

func StrToPtr

func StrToPtr(s string) *string

func StrToPtrStrict added in v0.26.0

func StrToPtrStrict(s 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