由gopath形式改为module

This commit is contained in:
kongyuebin
2021-04-27 15:33:49 +08:00
parent aef4dbb33c
commit 77d895e83a
1117 changed files with 332447 additions and 20 deletions

View File

@@ -0,0 +1,19 @@
package expection
import (
"github.com/beego/beego/v2/server/web"
"html/template"
"net/http"
)
func PageNotFind(rw http.ResponseWriter, r *http.Request) {
t, _ := template.New("404.html").ParseFiles(web.BConfig.WebConfig.ViewsPath + "/error/404.html")
data := make(map[string]interface{})
t.Execute(rw, data)
}
func SystemExpection(rw http.ResponseWriter, r *http.Request) {
t, _ := template.New("503.html").ParseFiles(web.BConfig.WebConfig.ViewsPath + "/error/503.html")
data := make(map[string]interface{})
t.Execute(rw, data)
}