utils

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2020 License: Apache-2.0 Imports: 3 Imported by: 10

Documentation

Index

Constants

View Source
const AESEncryptID = "AES"

AESEncryptID is the unique identifier for this encryptor.

Variables

This section is empty.

Functions

func GeneratePassword added in v0.5.0

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 added in v0.6.0

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

MarshalData marshals the given struct to a byte array.

func RemoveKeyFromSortedSlice added in v0.9.1

func RemoveKeyFromSortedSlice(s []string, key string) []string

RemoveKeyFromSortedSlice removes the given key from the sorted slice.

func StringSliceContains

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

StringSliceContains check whether the specified key is in the sorted 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