package shellquote
Import Path
github.com/kballard/go-shellquote (on go.dev)
Dependency Relation
imports 4 packages, and imported by one package
Involved Source Files
Shellquote provides utilities for joining/splitting strings using sh's
word-splitting rules.
quote.go
unquote.go
Package-Level Functions (total 2)
Join quotes each argument and joins them with a space.
If passed to /bin/sh, the resulting string will be split back into the
original arguments.
Split splits a string according to /bin/sh's word-splitting rules. It
supports backslash-escapes, single-quotes, and double-quotes. Notably it does
not support the $'' style of quoting. It also doesn't attempt to perform any
other sort of expansion, including brace expansion, shell expansion, or
pathname expansion.
If the given input has an unterminated quoted string or ends in a
backslash-escape, one of UnterminatedSingleQuoteError,
UnterminatedDoubleQuoteError, or UnterminatedEscapeError is returned.
Package-Level Variables (total 3)
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |