gf
gf copied to clipboard
os/gtime: GTime invalid memory address or nil pointer
Go version
go1.2.=4.3
GoFrame version
v2.8.3
Can this bug be reproduced with the latest release?
Option Yes
What did you do?
type GtimeTest struct {
ChildCommitTime *time.Time json:"childCommitTime"
}
func main() { gtimeTest := &GtimeTest{} gTime := gconv.GTime(gtimeTest.ChildCommitTime) fmt.Println(gTime) }
What did you see happen?
What did you expect to see?
return nil