Registry / utility / kballard-go-shellquote

kballard-go-shellquote

JSON →
library0.0.0-20180428030007-95032a82bc51gogounverified

Shellquote provides utilities for joining/splitting strings using sh's word-splitting rules.

go get github.com/kballard/go-shellquote
INSTALL
IMPORT
SIG · KBALLARD-GO-SHELLQ
K
kballard-go-shellquote
utilitygov0.0.0-20180428030007-95032a82bc51
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.

shellquote
github.com/kballard/go-shellquote

Splits a shell command string into tokens respecting quotes.

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

No known issues recorded.

Upgrade
Version history
0.0.0-20180428030007-95032a82bc51latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
kballard-go-shellquote — go get kballard-go-shellquote · libregistry