Help us shape the future of Go! Take the 2026 Go Developer Survey

common

package
v2.4.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PutBuffer added in v2.2.0

func PutBuffer(buf *Buffer)

Types

type Buffer added in v2.2.0

type Buffer struct {
	Data []byte
	B1   []byte
	B2   []byte
	B4   []byte
	B8   []byte
	B16  []byte
	// contains filtered or unexported fields
}

func GetBuffer added in v2.2.0

func GetBuffer() *Buffer

func (*Buffer) Flush added in v2.2.0

func (b *Buffer) Flush(w io.Writer) error

func (*Buffer) Write added in v2.2.0

func (b *Buffer) Write(w io.Writer, vs ...byte) error

type Common

type Common struct{}

Common is used encoding/decoding

func (*Common) CheckField

func (c *Common) CheckField(field reflect.StructField) (public, omit bool, name string)

CheckField returns flag whether should encode/decode or not and field name

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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