Discover Packages
github.com/ray-g/gopl
ch12
ex12.10
package
Version:
v0.0.0-...-8cd4330
Opens a new window with list of versions in this module.
Published: Jun 28, 2018
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
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
.)
Expand ▾
Collapse ▴
Documentation
¶
Package sexpr provides a means for converting Go objects to and
from S-expressions.
!+Marshal
Marshal encodes a Go value in S-expression form.
func MarshalIndent(v interface{}) ([]byte , error )
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.