utils

package
v0.0.0-...-a7688b9 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2025 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext string, key []byte) (string, error)

func Encrypt

func Encrypt(plaintext string, key []byte) (string, error)

func Ternary

func Ternary(condition bool, a, b interface{}) interface{}

func Truncate

func Truncate(str string, length int) string

Types

type Colors

type Colors struct {
	Default int
	Success int
	Error   int
}

func GetColors

func GetColors() Colors

Jump to

Keyboard shortcuts

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