mirror of
https://gitee.com/johng/gf
synced 2026-07-07 06:15:15 +08:00
fix issue in router value retrieving for ghttp.Request
This commit is contained in:
@ -1,14 +1,14 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
import (
|
||||
"github.com/gogf/gf/frame/g"
|
||||
"github.com/gogf/gf/os/gfile"
|
||||
)
|
||||
|
||||
func main() {
|
||||
type User struct {
|
||||
Id int
|
||||
}
|
||||
u1 := &User{1}
|
||||
u2 := *u1
|
||||
u2.Id = 2
|
||||
fmt.Println(u1)
|
||||
fmt.Println(u2)
|
||||
g.Dump(gfile.ScanDirFile("/Users/john/Temp/test", "*", true))
|
||||
//if err := gfile.ReplaceDir("gf-empty", "app", "/Users/john/Temp/test", "*.*", true); err != nil {
|
||||
// glog.Fatal("content replacing failed,", err.Error())
|
||||
//}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user