cmd

package
v2.0.0-...-9c6eed7 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main() int

Main is the main entrypoint for the go-httpbin binary. See loadConfig() for command line argument parsing.

Types

type ConfigError

type ConfigError struct {
	Err   error
	Usage string
}

ConfigError is used to signal an error with a command line argument or environmment variable.

It carries the command's usage output, so that we can decouple configuration parsing from error reporting for better testability.

func (ConfigError) Error

func (e ConfigError) Error() string

Error implements the error interface.

Jump to

Keyboard shortcuts

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