GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - alexcoder04/arrowprint: Go library for Arch-Linux-like CLI output

BranchesTags
Open more actions menu

Latest commit

 

History

15 Commits
15 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
screenshots
screenshots
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
arrowprint.go
arrowprint.go
 
 
go.mod
go.mod
 
 
go.sum
go.sum
 
 

Repository files navigation

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) { }

About

Go library for Arch-Linux-like CLI output

Topics

archarch-linuxclicli-toolscolorformattinggogo-librarygolanglibraryoutput

Resources

Readme
GPL-3.0 license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.