package shellwords
import "github.com/mattn/go-shellwords"
Index ¶
- Variables
- func Parse(line string) ([]string, error)
- func ParseWithEnvs(line string) (envs []string, args []string, err error)
- type Parser
Variables ¶
Functions ¶
func Parse ¶
func ParseWithEnvs ¶
Types ¶
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 (*Parser) ParseWithEnvs ¶
Source Files ¶
- Version
- v1.0.12 (latest)
- Published
- Jun 4, 2021
- Platform
- darwin/amd64
- Imports
- 7 packages
- Last checked
- 3 days ago –
Tools for package owners.