message

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: AGPL-3.0 Imports: 4 Imported by: 43

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