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,17 @@
package main
import (
"github.com/gogf/gf/net/ghttp"
)
func main() {
s := ghttp.GetServer()
s.BindHandler("/", func(r *ghttp.Request) {
r.Response.Writeln("您可以同时通过HTTP和HTTPS方式看到该内容")
})
s.EnableHTTPS("./server.crt", "./server.key")
s.SetHTTPSPort(8100, 8200)
s.SetPort(8300, 8400)
s.EnableAdmin()
s.Run()
}