Documentation ¶
Index ¶
- Constants
- Variables
- func Marshal(w io.Writer, in interface{}, zip bool) error
- func MarshalNaked(w io.Writer, in interface{}, name string) error
- func ReadHeader(r io.Reader) (ver int, zip bool, err error)
- func Unmarshal(r io.Reader, out interface{}) error
- func UnmarshalNaked(r io.Reader, out interface{}) (name string, err error)
- func WriteHeader(w io.Writer, zip bool) error
- type InvalidUnmarshalError
Constants ¶
View Source
const Version = 1
Variables ¶
View Source
var ErrFormat = errors.New("Not a Jex format")
View Source
var ErrVersion = errors.New("Unsupported Jex version")
Functions ¶
func MarshalNaked ¶
MarshalNaked marshal naked data, name can be empty
func UnmarshalNaked ¶
UnmarshalNaked 读裸数据
Types ¶
type InvalidUnmarshalError ¶
InvalidUnmarshalError 是解码错误
func (*InvalidUnmarshalError) Error ¶
func (e *InvalidUnmarshalError) Error() string
Click to show internal directories.
Click to hide internal directories.