log

package
v0.0.0-...-2ebb5e3 Latest Latest
Warning

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

Go to latest
Published: May 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(data string)

func Default

func Default(data string)

func Fatal

func Fatal(data string)

func New

func New(message string, logType Type)

func Panic

func Panic(data string)

func Warning

func Warning(data string)

Types

type Log

type Log struct {
	Message   string
	Type      Type
	CreatedAt time.Time
}

func (*Log) String

func (l *Log) String() string

type Type

type Type uint
const (
	TypeDefault Type = iota
	TypeWarning
	TypePanic
	TypeFatal
	TypeDebug
)

Jump to

Keyboard shortcuts

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