shellwords

package
v0.0.0-...-6a11942 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2013 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Split

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

Split line of Shell words.

Example
words, err := Split(`a-word 'cool' foo'bar'`)
if err != nil {
	panic(err)
}
for _, word := range words {
	fmt.Println(word)
}
Output:

a-word
cool
foobar

Types

This section is empty.

Jump to

Keyboard shortcuts

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