Registry / utility / google-shlex

google-shlex

JSON →
library0.0.0-20191202100458-e7afc7fbc510gogounverified

Package shlex implements a simple lexer that splits input into tokens using shell-style quoting and commenting rules.

go get github.com/google/shlex
INSTALL
IMPORT
SIG · GOOGLE-SHLEX
G
google-shlex
utilitygov0.0.0-20191202100458-e7afc7fbc510
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/google/shlex

Splits a shell command string into tokens.

package main import ( "fmt" "github.com/google/shlex" ) func main() { args, _ := shlex.Split("echo 'hello world'") fmt.Printf("%q\n", args) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20191202100458-e7afc7fbc510latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources