mirror of
https://gitee.com/johng/gf
synced 2026-07-04 04:52:48 +08:00
refract(os/gtime): swap function names between Format and Layout (#4275)
This commit is contained in:
@ -400,7 +400,7 @@ func Test_Convert2(t *testing.T) {
|
||||
t.Assert(j.Get("name").IsNil(), false)
|
||||
t.Assert(j.Len("name1"), -1)
|
||||
t.Assert(j.Get("time").Time().Format("2006-01-02"), "2019-06-12")
|
||||
t.Assert(j.Get("time").GTime().Format("Y-m-d"), "2019-06-12")
|
||||
t.Assert(j.Get("time").GTime().Layout("Y-m-d"), "2019-06-12")
|
||||
t.Assert(j.Get("time").Duration().String(), "0s")
|
||||
|
||||
err := j.Var().Scan(&name)
|
||||
|
||||
Reference in New Issue
Block a user