quoted

Imports

Imports #

"flag"
"fmt"
"strings"
"unicode"

Constants & Variables

_ var #

var _ flag.Value = *ast.CallExpr

Type Aliases

Flag type #

A Flag parses a list of string arguments encoded with Join. It is useful for flags like cmd/link's -extldflags.

type Flag []string

Functions

Join function #

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 Join(args []string) (string, error)

Set method #

func (f *Flag) Set(v string) error

Split function #

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. Keep in sync with cmd/dist/quoted.go

func Split(s string) ([]string, error)

String method #

func (f *Flag) String() string

isSpaceByte function #

func isSpaceByte(c byte) bool

Generated with Arrow