mirror of
https://github.com/astaxie/beego.git
synced 2024-11-19 06:30:54 +00:00
15 lines
230 B
Go
15 lines
230 B
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>")
|
|
}
|