util

package
v0.2.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetArch added in v0.2.0

func GetArch() string

GetArch validates/returns the current architecture if supported and panics otherwise

func GetOS added in v0.2.0

func GetOS() string

GetOS validates/returns the current operating system if supported and panics otherwise

func GetOSandArch added in v0.2.0

func GetOSandArch(separator string) string

GetOSandArch validates/returns the current os/arch combination if supported and panics otherwise

Types

type Errors

type Errors []error

Errors implements error and contains all config errors This is returned by Config.Validate

func Flatten

func Flatten(errors Errors) Errors

Flatten recursively flattens any Errors to a single top level Errors

func NewErrors

func NewErrors(errors []error) Errors

NewErrors returns a new Errors from a slice of error

func (Errors) Error

func (e Errors) Error() string

Error implements the error interface

func (Errors) Errors

func (e Errors) Errors() []error

Errors returns the slice of errors contained by Errors

Jump to

Keyboard shortcuts

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