Back to godoc.org
github.com/mattn/go-shellwords

package shellwords

v1.0.10
Latest Go to latest
Published: Feb 5, 2020 | License: MIT | Module: github.com/mattn/go-shellwords

Index

Variables

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