Skip to content

v.util.vflags #

fn join_env_vflags_and_os_args #

fn join_env_vflags_and_os_args() []string

join_env_vflags_and_os_args returns all the arguments (the ones from the env variable VFLAGS too), passed on the command line.

fn tokenize_to_args #

fn tokenize_to_args(s string) []string

tokenize_to_args converts the input s, into an array of arguments. The arguments are separated by one or more spaces in the input s. The separating spaces are ignored. It supports quoted arguments, where "several little words" for example, will become a single argument in the output. The quotes can be single or double ones.