utils

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2018 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AskForConfirmation added in v0.1.5

func AskForConfirmation(question string) bool

func CleanValue

func CleanValue(v interface{}) interface{}

func FileWithFileEnding

func FileWithFileEnding(filename string, fileEndings []string) (string, error)

func IsJSON

func IsJSON(opDefFilePath string) bool

func IsYAML

func IsYAML(opDefFilePath string) bool

Types

type Binary

type Binary []byte

func (Binary) MarshalJSON

func (b Binary) MarshalJSON() ([]byte, error)

func (*Binary) MarshalYAML

func (b *Binary) MarshalYAML() (interface{}, error)

type MapStr

type MapStr map[string]interface{}

func (*MapStr) UnmarshalYAML

func (ms *MapStr) UnmarshalYAML(unmarshal func(interface{}) error) error

Jump to

Keyboard shortcuts

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