Documentation
¶
Overview ¶
Package states contains a state machine for writing your own Generator.
Index ¶
- type Machine
- func (sm *Machine) Depth() uint
- func (sm *Machine) Expect(oneOf ...State)
- func (sm *Machine) ExpectArray()
- func (sm *Machine) ExpectEnd()
- func (sm *Machine) ExpectKey()
- func (sm *Machine) ExpectRoot()
- func (sm *Machine) ExpectValue()
- func (sm *Machine) Next()
- func (sm *Machine) Pop()
- func (sm *Machine) Push(next State)
- func (sm *Machine) Reset()
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Machine ¶
func (*Machine) ExpectArray ¶
func (sm *Machine) ExpectArray()
func (*Machine) ExpectRoot ¶
func (sm *Machine) ExpectRoot()
func (*Machine) ExpectValue ¶
func (sm *Machine) ExpectValue()
Click to show internal directories.
Click to hide internal directories.