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

    func StrToPtrStrict(s string) *string

    Types

    This section is empty.