kefu/types/time_test.go

16 lines
187 B
Go
Raw Normal View History

2024-12-10 02:50:12 +00:00
package types
import (
"testing"
"time"
)
func TestTime_MarshalJSON(t *testing.T) {
now := time.Now()
ti := &Time{
Time: now,
}
res, _ := ti.MarshalJSON()
t.Log(string(res))
}