فهرست منبع

Gofmt (#930)

* Go fmt

* Add me to Authors
Yasser Abdolmaleki 8 سال پیش
والد
کامیت
d9b0d516ae
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 1 0
      AUTHORS
  2. 2 2
      marshal_test.go

+ 1 - 0
AUTHORS

@@ -89,3 +89,4 @@ Derrick Wippler <thrawn01@gmail.com>
 Leigh McCulloch <leigh@leighmcculloch.com>
 Ron Kuris <swcafe@gmail.com>
 Raphael Gavache <raphael.gavache@gmail.com>
+Yasser Abdolmaleki <yasser@yasser.ca>

+ 2 - 2
marshal_test.go

@@ -1335,8 +1335,8 @@ func TestUnmarshalDate(t *testing.T) {
 
 func TestMarshalDate(t *testing.T) {
 	now := time.Now()
-	timestamp := now.UnixNano()/int64(time.Millisecond)
-	expectedData := encInt(int32(timestamp/86400000 + int64(1 << 31)))
+	timestamp := now.UnixNano() / int64(time.Millisecond)
+	expectedData := encInt(int32(timestamp/86400000 + int64(1<<31)))
 	var marshalDateTests = []struct {
 		Info  TypeInfo
 		Data  []byte