u
This commit is contained in:
1 parent
a07052e4ca
commit
f3df63e74e
1 file changed
+3
-1
@@ -17,7 +17,9 @@ func helloHandler(w http.ResponseWriter, r *http.Request) {
|
||||
func main() {
|
||||
http.HandleFunc("/", helloHandler)
|
||||
|
||||
err := http.ListenAndServe(":8081", nil)
|
||||
log.Printf("启动成功...")
|
||||
|
||||
err := http.ListenAndServe(":8082", nil)
|
||||
|
||||
if err != nil {
|
||||
log.Fatalf("server start failed: %v", err)
|
||||
|
||||
Reference in new issue
Block a user