Colorful messages

git-svn-id: file:///srv/svn/repo/aya/trunk@93 cec141ff-132a-4243-88a5-ce187bd62f94
This commit is contained in:
yakumo.izuru
2025-06-29 02:40:58 +00:00
parent 06c94dfc19
commit 8be5654567
3 changed files with 8 additions and 8 deletions

View File

@@ -35,6 +35,6 @@ func HttpServe(Dir string, Port int) {
handler := &Handler{http.FileServer(http.Dir(Dir))}
http.Handle("/", handler)
addr := fmt.Sprintf("127.0.0.1:%d", Port)
log.Printf("[aya.HttpServe] Listening on %s\n", addr)
fmt.Printf("\033[0;32mListening on %s\033[0m\n", addr)
log.Fatal(http.ListenAndServe(addr, nil))
}