utils

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateIfNotExists added in v0.3.4

func CreateIfNotExists(path string, mode os.FileMode) error

CreateIfNotExists examines a path and if it is not present, creates the passed file type for the given path.

func GetNetrcAuth

func GetNetrcAuth(hostname string) (string, string, error)

GetNetrcAuth - Returns the username and password (in this case the API token) for a given host configured in .netrc in the user's home directory.

func StringInSlice

func StringInSlice(s string, sl []string) bool

StringInSlice checks whether a given string is in a slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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