arrowprint

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: GPL-3.0 Imports: 2 Imported by: 13

README

arrowprint

Use Arch-Linux-like output in your Go programs!

Features

  • Different levels and colors of messages
  • printf-like formatting support
  • Windows support through mattn/go-colorable.

Example

example screenshot
arrowprint.InfoC("Starting program...")
step1 := "system"
arrowprint.Suc0("Initializing %s", step1)
arrowprint.Suc1("checking %s", step1)
arrowprint.Warn1("%s are not defined, this may lead to errors", "some variables")
arrowprint.InfoC("Running...")
arrowprint.Err0("An error occured, shutting down")

Available functions

// colon print, bold
// ` :: message`
func InfoC(msg string, args ...any) { }
func SucC(msg string, args ...any) { }
func WarnC(msg string, args ...any) { }
func ErrC(msg string, args ...any) { }

// level 0 print
// ` => message`
func Info0(msg string, args ...any) { }
func Suc0(msg string, args ...any) { }
func Warn0(msg string, args ...any) { }
func Err0(msg string, args ...any) { }

// level 1 print
// `   -> message`
func Info1(msg string, args ...any) { }
func Suc1(msg string, args ...any) { }
func Warn1(msg string, args ...any) { }
func Err1(msg string, args ...any) { }

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Err0

func Err0(msg string, args ...any)

func Err1

func Err1(msg string, args ...any)

func ErrC

func ErrC(msg string, args ...any)

func Info0

func Info0(msg string, args ...any)

level 0 print => message

func Info1

func Info1(msg string, args ...any)

level 1 print

-> message

func InfoC

func InfoC(msg string, args ...any)

colon print :: Message

func Suc0

func Suc0(msg string, args ...any)

func Suc1

func Suc1(msg string, args ...any)

func SucC

func SucC(msg string, args ...any)

func Warn0

func Warn0(msg string, args ...any)

func Warn1

func Warn1(msg string, args ...any)

func WarnC

func WarnC(msg string, args ...any)

Types

This section is empty.

Jump to

Keyboard shortcuts

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