sexpr

package
v0.0.0-...-6fe4f4e Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: MIT Imports: 6 Imported by: 0

README

Exercise 12.13 (P351)

Modify the S-expression encoder (§12.4) and decoder (§12.6) so that they honor the sexpr:"..." field tag in a similar manner to encoding/json (§4.5).

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var Interfaces map[string]reflect.Type

Functions

func Marshal

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

Marshal encodes a Go value in S-expression form.

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