Files
crawlab/core/utils/logo.go
Marvin Zhang 9e67e50c6c fix: add new line after logo and welcome info prints
- Added a new line after the logo and welcome information prints in the PrintLogoWithWelcomeInfo function to improve output readability.
- This change enhances the user experience by ensuring that the printed information is visually separated, making it easier to read during server startup.
2024-12-25 14:22:18 +08:00

29 lines
753 B
Go

package utils
import (
"fmt"
"github.com/common-nighthawk/go-figure"
)
func PrintLogoWithWelcomeInfo() {
printLogo()
printWelcomeInfo()
}
func printLogo() {
figure.NewColorFigure("Crawlab", "slant", "blue", true).Print()
fmt.Println()
}
func printWelcomeInfo() {
fmt.Println("Distributed web crawling platform for efficient, scalable data extraction.")
fmt.Println("For more information, please refer to the following resources:")
fmt.Println("- Website: https://crawlab.cn")
fmt.Println("- Documentation: https://docs.crawlab.cn")
fmt.Println("- GitHub: https://github.com/crawlab-team/crawlab")
if IsMaster() {
fmt.Println("Visit https://localhost:8080 for the web ui, once the server is ready.")
}
fmt.Println()
}