encoder

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryEncoder

type BinaryEncoder struct {
}

func (*BinaryEncoder) Bytes

func (e *BinaryEncoder) Bytes(src string) ([]byte, error)

func (*BinaryEncoder) String

func (e *BinaryEncoder) String(src []byte) (string, error)

type Encoder

type Encoder interface {
	String([]byte) (string, error)
	Bytes(string) ([]byte, error)
}

func NewEncoder

func NewEncoder(name string) (Encoder, error)

type EncodingEncoder

type EncodingEncoder struct {
	// contains filtered or unexported fields
}

func (*EncodingEncoder) Bytes

func (e *EncodingEncoder) Bytes(src string) ([]byte, error)

func (*EncodingEncoder) String

func (e *EncodingEncoder) String(src []byte) (string, error)

Jump to

Keyboard shortcuts

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