Documentation
¶
Overview ¶
Package banner provides responsive startup banner printing Per AI.md PART 7: BINARY REQUIREMENTS - Common Go Modules
Index ¶
- Variables
- func CenterArt(art []string, width int) []string
- func GetArt(cols int) []string
- func GetArtWidth(art []string) int
- func Print(cfg Config)
- func PrintError(err error)
- func PrintInfo(msg string)
- func PrintShutdown(appName string)
- func PrintSuccess(msg string)
- func PrintWarning(msg string)
- type Config
Constants ¶
This section is empty.
Variables ¶
View Source
var ArtLarge = []string{
" ___ ___ __ _ _ __ ___| |__ ",
" / __|/ _ \\/ _` | '__/ __| '_ \\ ",
" \\__ \\ __/ (_| | | | (__| | | |",
" |___/\\___|\\__,_|_| \\___|_| |_|",
}
ArtLarge is the large ASCII art (80+ cols)
View Source
var ArtMedium = []string{
" ___ ___ __ _ _ __ ___| |__ ",
"/ __|/ _ \\ _` | '__/ __| '_ \\",
"\\__ \\ __/ (_| | | | (__| | | |",
"|___/\\___|\\__,_|_| \\___|_| |_|",
}
ArtMedium is the medium ASCII art (60-79 cols)
View Source
var ArtSmall = []string{
" ___ ___ __ _ _ __ ___| |__ ",
" / __|/ _ \\ _` | '__/ __| '_ \\",
" \\__ \\ __/_| | | (__| | | |",
" |___/\\___|_| |_| \\___|_| |_|",
}
ArtSmall is the small ASCII art (40-59 cols)
Functions ¶
func GetArtWidth ¶
GetArtWidth returns the width of the ASCII art
Types ¶
type Config ¶
type Config struct {
AppName string
Version string
Mode string // production/development
Debug bool
URLs []string // Listen URLs
ShowSetup bool // Show setup token (server only, first run)
SetupToken string
AdminPath string
Description string
SMTPStatus string // SMTP status (e.g., "Auto-detected (localhost:25)")
}
Config holds banner configuration
Click to show internal directories.
Click to hide internal directories.