kifu

package module
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MIT Imports: 1 Imported by: 11

README

Kifu

go codecov

mascot

Kifu is a simple logging package. The name originates from 棋譜

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(format string, a ...any)
Example
package main

import (
	"github.com/hooligram/kifu"
)

func main() {
	kifu.Error("%v", "Facebook")
}
Output:

(〃>_<;〃) · Facebook

func Fatal

func Fatal(format string, a ...any)
Example
package main

import (
	"github.com/hooligram/kifu"
)

func main() {
	defer func() {
		recover()
	}()
	kifu.Fatal("%v", "Amazon")
}
Output:

(o・_・)ノ”(ノ_<、) · Amazon

func Info

func Info(format string, a ...any)
Example
package main

import (
	"github.com/hooligram/kifu"
)

func main() {
	kifu.Info("%v %v %v", "Google", "Microsoft", "Apple")
}
Output:

٩(。•́‿•̀。)۶ · Google Microsoft Apple

func Warn

func Warn(format string, a ...any)
Example
package main

import (
	"github.com/hooligram/kifu"
)

func main() {
	kifu.Warn("%v", "Netflix")
}
Output:

╮(︶︿︶)╭ · Netflix

Types

This section is empty.

Jump to

Keyboard shortcuts

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