tool

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesEcbDecryptWithPKCS7Unpadding

func AesEcbDecryptWithPKCS7Unpadding(data, key []byte) []byte

func AesEcbEncryptWithPKCS7Padding

func AesEcbEncryptWithPKCS7Padding(data, key []byte) []byte

func Base64DecodeString

func Base64DecodeString(src string) (dst string, err error)

func ContainChineseChar

func ContainChineseChar(str string) bool

func PKCS7Padding

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

func PKCS7UnPadding

func PKCS7UnPadding(origData []byte) []byte

Types

type HttpClient

type HttpClient struct {
	*http.Client
}

func GetHttpClient

func GetHttpClient() *HttpClient

func (*HttpClient) Get

func (c *HttpClient) Get(url string) (resp *http.Response, err error)

func (*HttpClient) Post

func (c *HttpClient) Post(url string, body io.Reader) (resp *http.Response, err error)

type Options

type Options map[string]interface{}

Jump to

Keyboard shortcuts

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