mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
- 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.
29 lines
753 B
Go
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()
|
|
}
|