flagsutil

package
v0.0.0-...-fb1bee7 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Opts = &Flags{}

Functions

This section is empty.

Types

type Flags

type Flags struct {
	ConfigFile    string `short:"c" long:"config-file" description:"specifying a config file"`
	Daemon        bool   `short:"d" long:"daemon" description:"running in background"`
	EnablePprof   bool   `long:"enable-pprof" description:"enable pprof profiling"`
	PprofAddr     string `long:"pprof-addr" default:":56060" description:"pprof listen addr"`
	DisableStdlog bool   `long:"disable-stdlog" description:"disable standard logging"`

	Version bool `short:"v" long:"version" description:"show version number"`
}

func (*Flags) String

func (f *Flags) String() string

Jump to

Keyboard shortcuts

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