mirror of
https://github.com/unknwon/the-way-to-go_ZH_CN.git
synced 2025-08-12 05:33:04 +08:00
17 lines
266 B
Go
17 lines
266 B
Go
// helloworld.go
|
|
package helloworld
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
)
|
|
|
|
func init() {
|
|
http.HandleFunc("/", handle)
|
|
}
|
|
|
|
func handle(w http.ResponseWriter, r *http.Request) {
|
|
fmt.Fprint(w, "<html><body>Hello, World! 세상아 안녕!! </body></html>")
|
|
}
|
|
|