16 lines
187 B
Go
16 lines
187 B
Go
|
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))
|
||
|
}
|