common

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GZipCompress

func GZipCompress(p []byte) ([]byte, error)

GZipCompress gzip compress

func GZipDecompress

func GZipDecompress(binary []byte) ([]byte, error)

GZipDecompress gzip decompress

func PKCS7Padding

func PKCS7Padding(data []byte, blockSizes ...int) []byte

*

  • PKCS7补码
  • 这里可以参考下http://blog.studygolang.com/167.html

func ParseFloat64

func ParseFloat64(value interface{}, args ...float64) float64

ParseFloat64 parse interface to float64

func ParseInt

func ParseInt(value interface{}, args ...int) int

ParseInt parse interface to int

func ParseInt64

func ParseInt64(value interface{}, args ...int64) int64

ParseInt64 parse interface to int64

func Split

func Split(buf []byte, lim int) [][]byte

func UnPKCS7Padding

func UnPKCS7Padding(data []byte) []byte

*

  • 去除PKCS7的补码

Types

This section is empty.

Jump to

Keyboard shortcuts

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