Documentation
¶
Index ¶
- Constants
- Variables
- func DesDecrypt(ciphertext string, key []byte) ([]byte, error)
- func DesEncrypt(plaintext []byte, key []byte) (string, error)
- func FormatNum(num int, bitSize int) string
- func MustDesDecrypt(ciphertext string, key []byte) string
- func NewTableWriter() *tablewriter.Table
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func Run(cmd string) error
- func RunOutput(cmd string, rw io.ReadWriter) error
- type ISpinner
Constants ¶
View Source
const (
Spinner01 spinnerTyp = iota + 1
)
Variables ¶
View Source
var OpenBrowser = browser.OpenURL
Functions ¶
func FormatNum ¶ added in v1.9.0
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 NewTableWriter ¶ added in v1.9.4
func NewTableWriter() *tablewriter.Table
func PKCS5Padding ¶ added in v1.9.3
func PKCS5UnPadding ¶ added in v1.9.3
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
Click to show internal directories.
Click to hide internal directories.