Registry / utility / flynn-go-shlex

flynn-go-shlex

JSON →
library0.0.0-20150515145356-3f9db97f8568gogounverified

A Go library for splitting shell-like strings into tokens, similar to Python's shlex.

go get github.com/flynn/go-shlex
INSTALL
IMPORT
SIG · FLYNN-GO-SHLEX
F
flynn-go-shlex
utilitygov0.0.0-20150515145356-3f9db97f8568
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

shlex
github.com/flynn/go-shlex

Split a shell command string into tokens.

package main import ( "fmt" "github.com/flynn/go-shlex" ) func main() { args, err := shlex.Split("echo 'hello world'") if err != nil { panic(err) } fmt.Println(args) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20150515145356-3f9db97f8568latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
flynn-go-shlex — go get flynn-go-shlex · libregistry