1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-02 09:43:28 +00:00
Beego/examples/hello/hello.go
xiemengjun 446daaea37 modify
2012-03-26 23:18:16 +08:00

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>")
}