gf icon indicating copy to clipboard operation
gf copied to clipboard

os/gtime: GTime invalid memory address or nil pointer

Open lujiamingzZ opened this issue 7 months ago • 0 comments

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?

Image

What did you expect to see?

return nil

lujiamingzZ avatar Jun 12 '25 09:06 lujiamingzZ