util

package
v0.0.0-...-a22f26f Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2017 License: Apache-2.0 Imports: 8 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(cmd string) ([]byte, error)

func FileExists

func FileExists(name string) bool

func HashBytes

func HashBytes(bytes []byte) string

func HashFile

func HashFile(filepath string) (string, error)

func HashString

func HashString(text string) string

func Schedule

func Schedule(what func(), delay time.Duration)

func String

func String(v interface{}) string

func StringPrettify

func StringPrettify(v interface{}) string

func WriteFile

func WriteFile(outputFilePath string, content string) error

func WriteResponseAsJSON

func WriteResponseAsJSON(w http.ResponseWriter, data interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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