utils

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2016 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainedIn

func ContainedIn(value string, list []string) bool

ContainedIn checks if a value in a list of a strings

func DecodeConfig

func DecodeConfig(reader io.Reader, format string, data interface{}) error

DecodeConfig unmarshal's the configuration file

func DecodeFile

func DecodeFile(path string, data interface{}) error

DecodeFile decodes the file

func EncodeConfig

func EncodeConfig(data interface{}, format string) ([]byte, error)

EncodeConfig marshals the item

func FindFiles

func FindFiles(path, glob string) ([]string, error)

FindFiles retrieves a bunch of files from a directory

func FindFilesInDirectory

func FindFilesInDirectory(paths []string, glob string) ([]string, error)

func IsDirectory

func IsDirectory(path string) bool

IsDirectory checks if a path is a directory

func IsFile

func IsFile(path string) bool

IsFile checks if the path is a file

Types

This section is empty.

Jump to

Keyboard shortcuts

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