コード例 #1
0
ファイル: freegeoip.go プロジェクト: CreativelyMe/freegeoip
func StaticHandler(w http.ResponseWriter, req *http.Request) {
	http.ServeFile(w, req, filepath.Join(staticPath, req.Vars[0]))
}
コード例 #2
0
ファイル: freegeoip.go プロジェクト: CreativelyMe/freegeoip
func IndexHandler(w http.ResponseWriter, req *http.Request) {
	http.ServeFile(w, req, filepath.Join(staticPath, "index.html"))
}