print

package
Version: v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2019 License: MIT Imports: 0 Imported by: 4

Documentation

Overview

Package print allows users to create a Logger interface from any object that supports Print and Printf.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(printer Printer) *logger

New creates a new logger wrapping printer.

Types

type Printer

type Printer interface {
	Print(v ...interface{})
	Printf(format string, v ...interface{})
}

Printer is an interface for Print and Printf.

Source Files

Jump to

Keyboard shortcuts

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