update project structure

This commit is contained in:
John
2019-07-29 21:01:19 +08:00
parent a98ad9577b
commit b01add2925
1763 changed files with 2184 additions and 1868 deletions

View File

@ -0,0 +1,16 @@
package main
import (
"github.com/gogf/gf/net/ghttp"
)
func main() {
s := ghttp.GetServer()
s.BindHandler("/", func(r *ghttp.Request) {
r.Response.Writeln("来自于HTTPS的哈喽世界")
})
s.EnableHTTPS("./server.crt", "./server.key")
s.SetAccessLogEnabled(true)
s.SetPort(8199)
s.Run()
}