utils

package
v0.0.0-...-8dd6030 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandPath

func ExpandPath(path string) string

ExpandPath expands file path if it starts with a tilde (~). E.g.: ~/.ssh will be expanded /home/current-user/.ssh

func HumanBytes

func HumanBytes(bytes uint64) string

HumanBytes returns human readable bytes count.

func SignalsHandle

func SignalsHandle(handler func(), sig ...os.Signal)

SignalsHandle executes the handler when any signal is received.

Types

This section is empty.

Jump to

Keyboard shortcuts

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