message

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2021 License: AGPL-3.0 Imports: 4 Imported by: 41

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Marshal func(v interface{}) ([]byte, error)
View Source
var Unmarshal func(data []byte, v interface{}) error

Functions

func TextMarshal

func TextMarshal(v interface{}) (string, error)

func TextUnmarshal

func TextUnmarshal(data string, v interface{}) error

Types

type Serializable

type Serializable interface {
	Marshal() []byte

	Unmarshal(data []byte)

	TextMarshal() string

	TextUnmarshal(data string)
}

Jump to

Keyboard shortcuts

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