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
¶
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
¶
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.