debug

package
v2.5.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Disable

func Disable()

Disable sets the DEBUG env var to false.

func Enable

func Enable()

Enable sets the DEBUG env var to true.

func IsEnabled

func IsEnabled() bool

IsEnabled checks whether the debug flag is set or not.

func IsEnabledFor

func IsEnabledFor(sections ...string) bool

IsEnabledFor returns true if DEBUG env var contains all sections.

func Start

func Start() interface {
	Stop()
}

Types

type Debug

type Debug struct {
	// contains filtered or unexported fields
}

func (*Debug) Stop

func (d *Debug) Stop()

Jump to

Keyboard shortcuts

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