util

package
v0.0.0-...-b65189e Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppName

func AppName() string

func FileExists

func FileExists(path string) bool

func Homedir

func Homedir() string

Returns the users home dir

func IsRegularFile

func IsRegularFile(path string) (bool, error)

func Mkdir

func Mkdir(path string) error

func PromptInput

func PromptInput(msg string) string

Prompt user to input data

Types

type File

type File struct {
	Name    string
	Content string
}

func ReadFile

func ReadFile(path string) ([]*File, error)

func ReadFiles

func ReadFiles(path string) ([]*File, error)

Jump to

Keyboard shortcuts

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