cfmt alternatives and similar packages
Based on the "Advanced Console UIs" category.
Alternatively, view cfmt alternatives based on common mentions on social networks and blogs.
-
Rich Interactive Widgets for Terminal UIs
Rich interactive widgets for terminal-based UIs written in Go -
tcell
Tcell is an alternate terminal package, similar in some ways to termbox, but better in others. -
asciigraph
Go package to make lightweight ASCII line graph ╭┈╯ in command line apps with no other dependencies. -
termtables
A Go port of the Ruby library terminal-tables for simple ASCII table generation as well as providing markdown and HTML output -
tabular
Print ASCII tables from command line utilities without the need to pass large sets of data to the API. -
ctc
The non-invasive cross-platform terminal color library does not need to modify the Print method.
Get performance insights in less than 4 minutes
Do you think we are missing an alternative of cfmt or a related project?
Popular Comparisons
README
Cfmt
Contextual fmt
It provides contextual formatting functions that have nearly identical usage of the fmt package. The ideas were borrowed from bootstrap's contextual color classes.
Installation
go get github.com/mingrammer/cfmt
Usage
package main
import (
"log"
"github.com/mingrammer/cfmt"
)
func main() {
cfmt.Success("User was created successfully")
cfmt.Infoln("Here are some candidates")
cfmt.Warningf("%s is not valid integer value\n", "123a")
log.Fatal(cfmt.Serrorf("Only numeric is allowed, got %s", "123.456a"))
}
[cfmt output](images/output.png)
Contextual functions
Note: cfmt.Errorf function does not do same things to fmt.Errorf, but to fmt.Printf with red colored text.
- Success (Green)
- Fsuccess, Fsuccessf, Fsuccessln
- Success, Successf, Successln
- Ssuccess, Ssuccessf, Ssuccessln
- Info (Cyan)
- Finfo, Finfof, Finfoln
- Info, Infof, Infoln
- Sinfo, Sinfof, Sinfoln
- Warning (Yellow)
- Fwarning, Fwarningf, Fwarningln
- Warning, Warningf, Warningln
- Swarning, Swarningf, Swarningln
- Error (Red)
- Ferror, Ferrorf, Ferrorln
- Error, Errorf, Errorln
- Serror, Serrorf, Serrorln
License
MIT
*Note that all licence references and agreements mentioned in the cfmt README section above
are relevant to that project's source code only.