parser/shared/type_test.go

16 lines
240 B
Go

package shared
import (
"fmt"
"testing"
)
func TestUnixTimestampJSONNano(t *testing.T) {
var ut UnixTimestamp
ut.UnmarshalJSON([]byte(`1545197984`))
fmt.Println(ut)
ut.UnmarshalJSON([]byte(`1545197984.5691502`))
fmt.Println(ut)
}