logflag

package
v0.111.7 Latest Latest
Warning

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

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

Documentation

Overview

Package logflag provides a boolean flag to use with log enablement.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flag

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

A Flag represents a boolean value to be used as flag to enable or disable logging output.

func New

func New(log *log.Logger) *Flag

New returns a new Flag instance.

func (*Flag) IsBoolFlag

func (f *Flag) IsBoolFlag() bool

IsBoolFlag implements the flag.Value interface.

func (*Flag) Set

func (f *Flag) Set(s string) error

Set implements the flag.Value interface.

func (*Flag) String

func (f *Flag) String() string

Jump to

Keyboard shortcuts

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