codec

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NotSupportDecode = errors.New("not support decode")
)

Functions

func Md5Hex

func Md5Hex(src []byte) []byte

func Md5HexString

func Md5HexString(src []byte) string

func Slice2String

func Slice2String(slice []byte) string

func String2Slice

func String2Slice(str string) []byte

Types

type Codec

type Codec interface {
	Encode(src []byte) (dst []byte)
	Decode(src []byte) (dst []byte, err error)
}

func NewBase64Codec

func NewBase64Codec() Codec

func NewBase64UrlCodec

func NewBase64UrlCodec() Codec

func NewHexCodec

func NewHexCodec() Codec

func NewMd5Codec

func NewMd5Codec() Codec

func NewSnappyCodec

func NewSnappyCodec() Codec

func NewUrlCodec

func NewUrlCodec() Codec

Jump to

Keyboard shortcuts

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