소스 검색

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