mirror of
https://gitee.com/johng/gf
synced 2026-06-07 02:12:11 +08:00
improve CORS feature for ghttp.Server
This commit is contained in:
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user