This repository has been archived on 2025-08-13. You can view files and clone it, but cannot push or open issues or pull requests.

15 lines
218 B
Go
Raw Normal View History

2025-06-05 13:09:30 +08:00
package main
import (
"fmt"
"log"
"net/http"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello, Go!")
})
log.Fatal(http.ListenAndServe(":8080", nil))
}