Back to

package shellwords

Latest Go to latest
Published: Feb 5, 2020 | License: MIT | Module:



var (
	ParseEnv      bool = false
	ParseBacktick bool = false

func Parse

func Parse(line string) ([]string, error)

type Parser

type Parser struct {
	ParseEnv      bool
	ParseBacktick bool
	Position      int
	Dir           string

	// If ParseEnv is true, use this for getenv.
	// If nil, use os.Getenv.
	Getenv func(string) string

func NewParser

func NewParser() *Parser

func (*Parser) Parse

func (p *Parser) Parse(line string) ([]string, error)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier