util

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateHash

func CreateHash(key string) string

func Decrypt

func Decrypt(cipherText, passphrase string) (string, error)

func Encrypt

func Encrypt(plainText, passphrase string) (string, error)

func JoinStringMaps added in v1.8.0

func JoinStringMaps(maps ...map[string]string) map[string]string

JoinStringMaps joins multiple string maps into one If there are duplicate keys, the last one wins

Types

type ConcurrentSlice

type ConcurrentSlice struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

ConcurrentSlice is a slice that can be appended concurrently

func (*ConcurrentSlice) Append

func (cs *ConcurrentSlice) Append(item interface{})

Append safely appends items to a slice

func (*ConcurrentSlice) GetItems

func (cs *ConcurrentSlice) GetItems() []interface{}

GetItems gets the items from the list, should only be used when there are no operations working on it.

Jump to

Keyboard shortcuts

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