util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2014 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NodeBytes = []byte{0x0f, 0xd1, 0x98, 0x10, 0x86, 0x2c, 0xd6, 0xdc}
)

Functions

func CanLoadFile

func CanLoadFile(path string) bool

CanLoadFile returns true if a file can be opened or false if otherwise.

func ComputeHmac256

func ComputeHmac256(message string, secret string) string

ComputeHmac256 returns a base64 encoded hash of a message using a secret.

func Cwd

func Cwd() string

Cwd returns the current working directory or panics.

func Hash

func Hash(bytes []byte) string

Hash returns a hex encoded sha1 hash.

func NewUuid

func NewUuid() (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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