shellwords

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: ISC, MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

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

Parse parses the given text to a slice of words.

Types

type ErrMissingClose

type ErrMissingClose struct {
	Position int
	Words    string // joined
}

ErrMissingClose is returned when the parsed line is missing a closing quote.

func (ErrMissingClose) Error

func (e ErrMissingClose) Error() string

Jump to

Keyboard shortcuts

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