common

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APMinLength = 3
	APMaxLength = 128
)

Variables

View Source
var (
	APAllowedChars  = []byte("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789:.-_+*!$%~@")
	HexAllowedChars = []byte("0123456789abcdef")
)
View Source
var NotPiped = errors.New("not piped")

Functions

func Color added in v1.1.0

func Color(style, color string) termenv.Style

func ContainsOtherThan

func ContainsOtherThan(str string, allowed []byte) bool

func Decrypt

func Decrypt(textStr, keyStr string) (res []byte, err error)

func Encrypt

func Encrypt(textStr, keyStr string) (res []byte, err error)

func GetClipboard

func GetClipboard(b64 bool) (res string, err error)

func MD5Hash

func MD5Hash(text string) string

func PrettyLimit

func PrettyLimit(in string, max int) string

func Profile

func Profile() termenv.Profile

func ReadPipe

func ReadPipe() (res string, err error)

func StyleCache

func StyleCache() termenv.Style

func StyleDebug

func StyleDebug() termenv.Style

func StyleInfo

func StyleInfo() termenv.Style

func StyleServe

func StyleServe() termenv.Style

func StyleUpdate

func StyleUpdate() termenv.Style

func StyleWarn

func StyleWarn() termenv.Style

func ValidateAnywherePath

func ValidateAnywherePath(anywhere string) bool

func ValidateAnywherePathRegex

func ValidateAnywherePathRegex(anywhere string) bool

func ValidateHex

func ValidateHex(anywhere string) bool

func WordClient

func WordClient() termenv.Style

func WordServer

func WordServer() termenv.Style

func WriteClipboard

func WriteClipboard(txt string, b64 bool) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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