package quoted
import "cmd/internal/quoted"
Package quoted provides string manipulation utilities.
Index ¶
Functions ¶
func Join ¶
Join joins a list of arguments into a string that can be parsed with Split. Arguments are quoted only if necessary; arguments without spaces or quotes are kept as-is. No argument may contain both single and double quotes.
func Split ¶
Split splits s into a list of fields, allowing single or double quotes around elements. There is no unescaping or other processing within quoted fields.
Types ¶
type Flag ¶
type Flag []string
A Flag parses a list of string arguments encoded with Join. It is useful for flags like cmd/link's -extldflags.
func (*Flag) Set ¶
func (*Flag) String ¶
Source Files ¶
- Version
- v1.18.6
- Published
- Aug 31, 2022
- Platform
- js/wasm
- Imports
- 4 packages
- Last checked
- 14 minutes ago –
Tools for package owners.