svc

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2019 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mask

func Mask(data string) string

Mask replaces every other 4 runes of a string with an 4 '****' runes. Ideal to mask sensitive data, like credit cards or social security numbers.

func MustGetEnv

func MustGetEnv(variable string) string

MustGetEnv retrieves the provided environment variable value, and panics if not found.

func MustGetEnvs

func MustGetEnvs(variables ...string) []string

MustGetEnvs retrieves the provided environment variables values, and panics if any is not found.

func RandString

func RandString(n int) string

RandString generates a random string formed by upper/lower cased characters.

Types

This section is empty.

Jump to

Keyboard shortcuts

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