pkg

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Spinner01 spinnerTyp = iota + 1
)

Variables

View Source
var OpenBrowser = browser.OpenURL

Functions

func DesDecrypt added in v1.9.3

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

func DesEncrypt added in v1.9.3

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

func FormatNum added in v1.9.0

func FormatNum(num int, bitSize int) string

FormatNum is a function to format number, output string e.g. FormatNum(123, 3) => "123", FormatNum(123, 5) => "00123" if num is over bitSize, return original number string.

func MustDesDecrypt added in v1.9.3

func MustDesDecrypt(ciphertext string, key []byte) string

func NewTableWriter added in v1.9.4

func NewTableWriter() *tablewriter.Table

func PKCS5Padding added in v1.9.3

func PKCS5Padding(ciphertext []byte, blockSize int) []byte

func PKCS5UnPadding added in v1.9.3

func PKCS5UnPadding(origData []byte) []byte

func Run

func Run(cmd string) error

Run .

func RunOutput

func RunOutput(cmd string, rw io.ReadWriter) error

RunOutput .

Types

type ISpinner added in v1.6.8

type ISpinner interface {
	// Start spin
	Start()
	// Stop spin
	Stop()
}

ISpinner spinner interface to allow more than one of implementations.

func NewSpinner added in v1.6.8

func NewSpinner(typ spinnerTyp) ISpinner

Jump to

Keyboard shortcuts

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