echo

package module
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2025 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(v string) (int, error)

func Debugf

func Debugf(v string, vs ...any) (int, error)

func Error

func Error(v string) (int, error)

func Errorf

func Errorf(v string, vs ...any) (int, error)

func Fatal

func Fatal(v string)

func Fatalf

func Fatalf(v string, vs ...any)

func Info

func Info(v string) (int, error)

func Infof

func Infof(v string, vs ...any) (int, error)

func SetFlags

func SetFlags(fs ...Flags)

func SetWriter

func SetWriter(w io.Writer)

func Warn

func Warn(v string) (int, error)

func Warnf

func Warnf(v string, vs ...any) (int, error)

Types

type Flags

type Flags = uint8
const (
	//                                  Bit
	//                                  ---
	WithCallerFunc Flags = 1 + iota //  1
	WithCallerFile                  //  2
	WithCallerLine                  //  3
	WithCallStack                   //  4
	WithLevel                       //  5
	WithTime                        //  6
	WithDate                        //  7
	WithColor                       //  8
)

type Level

type Level = uint8
const (
	LevelDebug Level = 1 + iota
	LevelWarn
	LevelInfo
	LevelError
	LevelFatal
)

func SetLevel

func SetLevel(l Level) Level

Jump to

Keyboard shortcuts

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