lib

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func B64Decode added in v0.1.42

func B64Decode(src string) (string, error)

Decode exported

func B64Encode added in v0.1.42

func B64Encode(s interface{}) string

Encode exported

func Contains added in v0.1.36

func Contains(s []string, e string) bool

Contains exported

func Crypto added in v0.2.0

func Crypto() crypto

func DeRefPtr added in v0.1.36

func DeRefPtr(v interface{}) interface{}

Pointer-dereference any struct literal

func Diff added in v0.1.36

func Diff(a []string, b []string) []string

Diff exported

func Hash added in v0.1.34

func Hash(src string, secret string) string

func Max added in v0.1.1

func Max(x, y int) int

Max exported

func Min added in v0.1.1

func Min(x, y int) int

Min exported

func RandString

func RandString(n int) string

RandString returns a random string of fixed length

func Reset added in v0.1.45

func Reset(v interface{})

Reset pointer to its type zero value

func XOR added in v0.2.15

func XOR(args ...interface{}) bool

XOR exported

Types

type B64DecodeError added in v0.1.43

type B64DecodeError struct {
	msg.Message
}

B64DecodeError exported

type ICrypto added in v0.2.0

type ICrypto interface {

	// Encode string
	Encode(plain string) string

	// Validates if Encode(plain) corresponds to encoded
	Compare(plain, encoded string) bool
}

type Pair added in v0.1.33

type Pair struct {
	A, B interface{}
}

Pair exported

type Quartet added in v0.1.33

type Quartet struct {
	A, B, C, D interface{}
}

Quartet exported

type Triplet added in v0.1.33

type Triplet struct {
	A, B, C interface{}
}

Triplet exported

Jump to

Keyboard shortcuts

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