sexpr

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

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.

Types

type Decoder

type Decoder struct {
	scanner.Scanner
	// contains filtered or unexported fields
}

func NewDecoder

func NewDecoder(r io.Reader) *Decoder

func (*Decoder) Token

func (dec *Decoder) Token() (interface{}, error)

type EndList

type EndList struct{}

func (EndList) String

func (tok EndList) String() string

type Int

type Int int

func (Int) String

func (tok Int) String() string

type StartList

type StartList struct{}

func (StartList) String

func (tok StartList) String() string

type String

type String string

type Symbol

type Symbol string

type Token

type Token interface{}

Jump to

Keyboard shortcuts

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