utils

package
v0.0.0-...-787f100 Latest Latest
Warning

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

Go to latest
Published: May 1, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const AESEncryptID = "AES"

AESEncryptID is the unique identifier for this encryptor.

Variables

This section is empty.

Functions

func GeneratePassword

func GeneratePassword(len int) (string, error)

GeneratePassword generates a password of given length.

func IsValidByteSlice

func IsValidByteSlice(data []byte) bool

IsValidByteSlice method check whether the Slice is valid or not.

func MarshalData

func MarshalData(data interface{}) ([]byte, error)

MarshalData marshals the given struct to a byte array.

func StringSliceContains

func StringSliceContains(key string, s []string) bool

StringSliceContains check whether the specified key is in the String slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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