cmd

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckError

func CheckError(err error)

CheckError wraps a function call which returns an error. If an error is returned, then `os.Exit(1)` is called

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetExporter

func GetExporter(config *define.Config) define.Exporterable

GetExporter takes in the current Config and returns an appropriate Exporterable.

func LogVersion

func LogVersion()

LogVersion tries to log the current version of gobench at the info level.

func RunBenchmark

func RunBenchmark(bench define.Benchmarkable)

RunBenchmark actually performs the task of running a benchmark.

func SetLogLevel

func SetLogLevel(config *define.Config)

SetLogLevel sets the current log level based on the given Config.

Types

This section is empty.

Jump to

Keyboard shortcuts

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