shconfig

package module
v0.0.0-...-1fbe543 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: MIT Imports: 4 Imported by: 1

README

shconfig

configuration via functions

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(root Dispatcher, conf string) error

func RequireString0

func RequireString0(args []string, fn func() error) error

func RequireString1

func RequireString1(args []string, fn func(string) error) error

func RequireString2

func RequireString2(args []string, fn func(string, string) error) error

Types

type Dispatcher

type Dispatcher interface {
	ConfCall(args []string) error
	ConfObject(args []string) (Dispatcher, error)
}

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(s string, name string) *Parser

func (*Parser) Next

func (p *Parser) Next() ([]string, error)

func (*Parser) RawMode

func (p *Parser) RawMode(on bool)

Jump to

Keyboard shortcuts

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