gout

package module
v0.0.0-...-269d99b Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: Apache-2.0 Imports: 6 Imported by: 1

README

Gout

This package contains several utilities, that i commonly use in my go projects.

Documentation

Index

Constants

View Source
const (
	// AlphaLowerCase alphabet a-z
	AlphaLowerCase = "abcdefghijklmnopqrstuvwxyz"
	// AlphaUpperCase alphabet A-Z
	AlphaUpperCase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
	// Numeric alphabet 0-9
	Numeric = "0123456789"
	// Alpha alphabet a-zA-Z
	Alpha = AlphaLowerCase + AlphaUpperCase
	// AlphaNumeric alphabet a-zA-Z0-9
	AlphaNumeric = Alpha + Numeric
)

Variables

This section is empty.

Functions

func DownloadFile

func DownloadFile(url string, path string) error

DownloadFile downloads a file and saves it

func RandomString

func RandomString(length int, alphabet string) string

RandomString generates a random string

func Sha512

func Sha512(str string, salt string) string

Sha512 hashes the string with the salt and returns it's base64 representation

Types

This section is empty.

Jump to

Keyboard shortcuts

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