warnings

package
v1.35.0-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Printf = olog.Entry(context.TODO()).Warnf

Printf can be overridden for testing

Functions

This section is empty.

Types

type Collect

type Collect struct {
	Warnings []string
}

Collect is used for testing to collect warnings instead of printing them

func (*Collect) Warnf

func (l *Collect) Warnf(format string, args ...interface{})

Warnf collects all the warnings for unit tests

type Warner

type Warner func(format string, args ...interface{})

Warner prints warnings

Jump to

Keyboard shortcuts

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