1
0
mirror of https://github.com/astaxie/beego.git synced 2024-10-01 11:11:49 +00:00
Beego/examples/hello/hello.go

15 lines
230 B
Go
Raw Normal View History

2012-03-26 15:18:16 +00:00
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>")
}