shellwords

package
v1.3.14 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: ISC, MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const WordOffset = 7

WordOffset is the offset from the position cursor to print on the error.

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 ErrParse

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

func (ErrParse) Error added in v1.1.4

func (e ErrParse) Error() string

Jump to

Keyboard shortcuts

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