utility

package
v0.0.0-...-0c93acb Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateUUID

func GenerateUUID() string

GenerateUUID creates a UUID

func GenerateUUIDWithoutDashes

func GenerateUUIDWithoutDashes() string

GenerateUUIDWithoutDashes creates a UUID without dashes

func Getenv

func Getenv(key, defaultValue string) string

Getenv is a helper function to get an environment variable value, but if the value is blank will fall back to a default value.

func HashPassword

func HashPassword(password string) (string, error)

func IsPasswordValid

func IsPasswordValid(hashedPassword, plaintextPassword string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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