utils

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2019 License: MIT Imports: 5 Imported by: 1

README

utils

golang helper functions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnsureDir added in v0.0.3

func EnsureDir(dir string) (os.FileInfo, error)

EnsureDir checks to see if directory exists, if not create it.

func EnvMap

func EnvMap() map[string]interface{}

EnvMap is a converts the env to a map fo string[interface]

func PathExists added in v0.0.3

func PathExists(path string) (bool, error)

PathExists checks to see if directory exists

func PathTo

func PathTo(file string) string

PathTo file resolves relative or absolute paths

func WriteFile

func WriteFile(file, data string) error

WriteFile and return as a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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