Documentation
¶
Overview ¶
commonflags holds flag defaults and usage messages that are common to the Puffs command line tools.
It also holds functions to parse and validate these flag values.
Index ¶
Constants ¶
View Source
const ( CcompilersDefault = "clang,gcc" CcompilersUsage = `comma-separated list of C compilers, e.g. "clang,gcc"` FocusDefault = "" FocusUsage = `comma-separated list of tests or benchmarks (name prefixes) to focus on, e.g. "puffs_gif_decode"` MimicDefault = false MimicUsage = `whether to compare Puffs' output with other libraries' output` RepsDefault = 5 RepsMin = 0 RepsMax = 1000000 RepsUsage = `the number of repetitions per benchmark` )
Variables ¶
This section is empty.
Functions ¶
func IsAlphaNumericIsh ¶
IsAlphaNumericIsh returns whether s contains only ASCII alpha-numerics and a limited set of punctuation such as commas and slahes, but not containing e.g. spaces, semi-colons, colons or backslashes.
The intent is that if s is alpha-numeric-ish, then it should not need escaping when passed to other programs as command line arguments.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.