close

package
v0.0.0-...-af4311f Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close(c io.Closer)

Close will deal with error if io.Closer returns an error It will log in warning level defaultly

Types

type Level

type Level int

Level defines log level if error occurred

const (
	// INFO level
	INFO Level = iota
	// WARNING level
	WARNING
	// FATAL level
	FATAL
)

func (Level) Close

func (v Level) Close(c io.Closer)

Close will call io.Closer with log level

Jump to

Keyboard shortcuts

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