shellwords: Index | Files

package shellwords

import ""


Package Files


func Escape Uses

func Escape(str string) string

Escape escapes a string so that it can be safely used in a Bourne shell command line. Note that a resulted string should be used unquoted and is not intended for use in double quotes nor in single quotes.

func Join Uses

func Join(words []string) string

Join builds a command line string from an argument list by joining all elements escaped for Bourne shell and separated by a space.

func Split Uses

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

Split a string into an array of tokens in the same way the UNIX Bourne shell does.

Package shellwords imports 3 packages (graph). Updated 2017-10-07. Refresh now. Tools for package owners. This is an inactive package (no imports and no commits in at least two years).