improve CORS feature for ghttp.Server

This commit is contained in:
John
2019-09-03 17:18:16 +08:00
parent e2906fba0b
commit cd00ac446b
10 changed files with 83 additions and 66 deletions

View File

@ -1,11 +1,20 @@
package main
import "github.com/gogf/gf/os/glog"
import (
"fmt"
func Test() {
}
"github.com/gogf/gf/encoding/gcompress"
"github.com/gogf/gf/os/gfile"
)
func main() {
glog.Line().Println("123")
fmt.Println(gfile.Basename("/dir/*"))
return
err := gcompress.ZipPath(
"/Users/john/Workspace/Go/GOPATH/src/github.com/gogf/gf/.example/other",
"/Users/john/Temp/test.zip",
)
if err != nil {
panic(err)
}
}