A Go library for adding customizable ASCII startup banners with system information and ANSI colors to applications.
Banner is a Go library that enables developers to add customizable ASCII art startup banners to their applications. It provides an easy way to display application personality and useful system information during startup, enhancing the developer and user experience.
Go developers who want to add visual personality and startup information to their command-line or server applications, particularly those who value easy integration and customization.
Developers choose Banner for its zero-configuration autoloading from a text file, rich template system with variables for system info and ANSI colors, and cross-platform compatibility with Windows support via go-colorable.
An easy way to add useful startup banners into your Go applications
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Importing the autoload package automatically loads and displays banners from a banner.txt file with no additional code, as demonstrated in the usage example.
Supports variables for system info, ANSI colors, and ASCII art generation via go-figure, allowing dynamic banners with details like Go version and current time.
Ensures proper ANSI color support on Windows when used with go-colorable, making it work seamlessly across all platforms.
Provides command-line flags and a simple API to control banner visibility and colors, offering flexibility without complex code changes.
Banners are displayed only at application startup and cannot be updated or triggered dynamically later, limiting use to initial feedback.
Relies on go-figure for ASCII art and go-colorable for Windows support, increasing binary size and potential versioning conflicts.
The autoload feature defaults to a specific file name and location, which may not align with all project structures without manual configuration via flags.