util

package
v0.0.0-...-6768135 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2013 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(path string) bool

Returns true if file/directory exists

func FormatBool

func FormatBool(b bool) string

func Homedir

func Homedir() string

Returns the users home dir

func Itoa64

func Itoa64(i int64) string

func JoinInt

func JoinInt(numbers []int64, sep string) string

func Mkdir

func Mkdir(path string) error

func PrintColumns

func PrintColumns(items []map[string]string, keyOrder []string, columnSpacing int)

Prints items in columns with header and correct padding

func PrintStruct

func PrintStruct(s interface{})

Prints a struct with one name-value-pair per line

func Prompt

func Prompt(msg string) string

Prompt user to input data

func TimeToLocal

func TimeToLocal(t time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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