einfo

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: MIT Imports: 2 Imported by: 0

README

Go einfo Last release Documentation

Go Report Card

Branch Status Coverage
master Build Status Coveralls
package main

import einfo "github.com/euskadi31/go-einfo"

func main() {
    einfo.Info("test info")
    einfo.Warn("test warn")
    einfo.Error("test error")

    einfo.Begin("Fetch data")
    einfo.End(true, "Cannot fetch data")

    einfo.Begin("Fetch data")
    einfo.End(false, "Cannot fetch data")
}

demo

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Output = os.Stdout

Output default output

Functions

func Begin

func Begin(format string, a ...interface{})

Begin a new message to print log to standard output. Arguments are handled in the manner of fmt.Print.

func End

func End(status bool, format string, a ...interface{})

End the message started with Begin to print log to standard output. Arguments are handled in the manner of fmt.Print.

func Error

func Error(format string, a ...interface{})

Error print log to standard output. Arguments are handled in the manner of fmt.Print.

func Info

func Info(format string, a ...interface{})

Info print log to standard output. Arguments are handled in the manner of fmt.Print.

func Warn

func Warn(format string, a ...interface{})

Warn print log to standard output. Arguments are handled in the manner of fmt.Print.

func Wend

func Wend(status bool, format string, a ...interface{})

Wend end the message with warnning level started with Begin to print log to standard output. Arguments are handled in the manner of fmt.Print.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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