sexpr

package
v0.0.0-...-8cd4330 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: MIT Imports: 6 Imported by: 0

README

Exercise 12.10 (P347)

Extend sexpr.Unmarshal to handle the booleans, floating-point numbers, and interfaces encoded by your solution to Exercise 12.3. (Hint: to decode interfaces, you will need a mapping from the name fo each supported type to its reflect.Type.)

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 Marshal encodes a Go value in S-expression form.

func MarshalIndent

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

func Unmarshal

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

!+Unmarshal 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