strings

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash

func Hash(str string) string

Hash generates a hash code from string

func HashFromBytes

func HashFromBytes(str []byte) string

HashFromBytes generates a hash code from byte array

func ParseVars

func ParseVars(output string) map[string]string

ParseVars parses each line as key=value and returns a map of all variables. If a line cannot be parsed it will be ignored.

func SecureRandomAlphaString

func SecureRandomAlphaString(length int) string

SecureRandomAlphaString returns a secure random string

func SecureRandomBytes

func SecureRandomBytes(length int) []byte

SecureRandomBytes returns the requested number of bytes using crypto/rand

func ToPointer

func ToPointer(str string) *string

ToPointer returns pointer to a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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