parse

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

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

Go to latest
Published: Jun 26, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block struct {
	// Repeat tells the application how many times to run the body.
	Repeat int

	// The name of the block can be used to identify the return values
	// from one block execution from another.
	Name string

	// The body of the template.
	Body string
}

Block represents an instruction block in a script file.

func Blocks

func Blocks(r io.Reader) ([]Block, error)

Blocks reads an input reader line by line, parsing blocks than can be executed by the Runner. If a block does not have an explicit REPEAT value, a default of 1 will be used.

Jump to

Keyboard shortcuts

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