shellwords

package
v0.0.0-...-a878fe9 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: ISC, MIT Imports: 1 Imported by: 0

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