discard

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2020 License: MIT Imports: 1 Imported by: 31

Documentation

Overview

Package discard implements a no-op handler useful for benchmarks and tests.

Index

Constants

This section is empty.

Variables

View Source
var Default = New()

Default handler.

Functions

This section is empty.

Types

type Handler

type Handler struct{}

Handler implementation.

func New

func New() *Handler

New handler.

func (*Handler) HandleLog

func (h *Handler) HandleLog(e *log.Entry) error

HandleLog implements log.Handler.

Jump to

Keyboard shortcuts

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