terminalapplog

package module
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2023 License: MIT Imports: 3 Imported by: 2

README

terminal-app-log

When we want to print information to a user in a terminal app context we do not want to print ugly log messages, so this package is intended to be an easy way to print text in a terminal UI different types of levels of text(INFO, WARNING, ERROR, NORMAL) using just 'fmt' package.

Supports linux, macOs, Windows

terminalapplog

Install package

go get github.com/Alana-Research/terminal-app-log

How to use

...
import "tlog "github.com/Alana-Research/terminal-app-log""
...

tlog.Warn(fmt.Sprintf("Example text with mem address concatenated %p", &x))
tlog.BigWarn(fmt.Sprintf("Example text with mem address concatenated %p", &x))
...

Credits

License

The MIT License (MIT) - see LICENSE.md for more details

Documentation

Index

Constants

View Source
const TITLE_MAX_CHAR int = 8

Variables

This section is empty.

Functions

func BigCustom added in v0.1.3

func BigCustom(title string, a ...any) error

func BigError

func BigError(a ...any)

func BigFail added in v0.1.3

func BigFail(a ...any)

func BigInfo

func BigInfo(a ...any)

func BigSuccess added in v0.1.3

func BigSuccess(a ...any)

func BigWarn

func BigWarn(a ...any)

func Custom added in v0.1.3

func Custom(title string, a ...any) error

func Empty added in v0.1.3

func Empty(a ...any)

func Error

func Error(a ...any)

func Fail added in v0.1.3

func Fail(a ...any)

func Info

func Info(a ...any)

func Success added in v0.1.3

func Success(a ...any)

func Warn

func Warn(a ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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