ch12ex13

package
v0.0.0-...-4489971 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package ch12ex13 provides a means for converting Go objects to and from S-expressions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v interface{}) ([]byte, error)

Marshal encodes a Go value in S-expression form. It respects "sexpr" struct tags for renaming, omitting null values ("omitempty" option) and generally skipping a field (tag "-"), analogous to JSON struct tags.

func Unmarshal

func Unmarshal(data []byte, out interface{}) (err error)

Unmarshal parses S-expression data and populates the variable whose address is in the non-nil pointer out.

Types

This section is empty.

Jump to

Keyboard shortcuts

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