shellwords

package
v3.3.6 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: ISC, MIT Imports: 1 Imported by: 4

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 MissingCloseError

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

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

func (MissingCloseError) Error

func (e MissingCloseError) Error() string

Jump to

Keyboard shortcuts

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