debug

package
v0.0.0-...-e85a4bd Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package debug provides debugging utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func V

func V(level LevelFlag) bool

V reports whether verbosity at the call site is at least the requested level based on the configuration of Level.

Types

type LevelFlag

type LevelFlag int8

LevelFlag represents the verbosity level.

var Level LevelFlag

Level is used for configuring the package verbosity.

func (*LevelFlag) Get

func (l *LevelFlag) Get() interface{}

Get implements the flag.Value interface.

func (*LevelFlag) Set

func (l *LevelFlag) Set(value string) error

Set implements the flag.Value interface.

func (*LevelFlag) String

func (l *LevelFlag) String() string

String implements the flag.Value interface.

func (*LevelFlag) Type

func (l *LevelFlag) Type() string

Type implements the pflag.Value interface.

Jump to

Keyboard shortcuts

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