commonflags

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2017 License: Apache-2.0 Imports: 0 Imported by: 0

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

func IsAlphaNumericIsh(s string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL