internal

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeFromBase64

func DecodeFromBase64(input string) string

func DecodeURL

func DecodeURL(s string) (string, error)

func EncodeToBase64

func EncodeToBase64(input string) string

encodeToBase64 encodes a string to base64

func EncodeURL

func EncodeURL(s string) string

func GenerateGUID

func GenerateGUID() string

func GeneratePassword

func GeneratePassword(length int, enableSpecialChars bool, enableNumeric bool, enableCapital bool) string

func GenerateULID

func GenerateULID() string

func HashString

func HashString(str string, algorithm string) (string, error)

func IndentJSON

func IndentJSON(input string) (string, error)

func Json2Yaml

func Json2Yaml(json string) (string, error)

func MinifyJSON

func MinifyJSON(input string) (string, error)

func Yaml2Json

func Yaml2Json(yamlString string) (string, error)

Types

type JWT

type JWT struct {
	Header    string
	Claims    string
	Signature string
	Expires   *time.Time
}

func DecodeJWT

func DecodeJWT(jwtToken string) (JWT, error)

Jump to

Keyboard shortcuts

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