Explorar o código

Gofmt (#930)

* Go fmt

* Add me to Authors
Yasser Abdolmaleki %!s(int64=8) %!d(string=hai) anos
pai
achega
d9b0d516ae
Modificáronse 2 ficheiros con 3 adicións e 2 borrados
  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