@@ -11,7 +11,7 @@ import (
1111
1212func TestMarshalPayload (t * testing.T ) {
1313 book := & Book {ID : 1 }
14- books := []* Book {book , & Book {ID : 2 }}
14+ books := []* Book {book , {ID : 2 }}
1515 var jsonData map [string ]interface {}
1616
1717 // One
@@ -623,11 +623,11 @@ func TestMarshalPayloadWithoutIncluded(t *testing.T) {
623623 Title : "Foo" ,
624624 Body : "Bar" ,
625625 Comments : []* Comment {
626- & Comment {
626+ {
627627 ID : 20 ,
628628 Body : "First" ,
629629 },
630- & Comment {
630+ {
631631 ID : 21 ,
632632 Body : "Hello World" ,
633633 },
@@ -660,12 +660,12 @@ func TestMarshalPayload_many(t *testing.T) {
660660 Title : "Title 1" ,
661661 CreatedAt : time .Now (),
662662 Posts : []* Post {
663- & Post {
663+ {
664664 ID : 1 ,
665665 Title : "Foo" ,
666666 Body : "Bar" ,
667667 },
668- & Post {
668+ {
669669 ID : 2 ,
670670 Title : "Fuubar" ,
671671 Body : "Bas" ,
@@ -682,12 +682,12 @@ func TestMarshalPayload_many(t *testing.T) {
682682 Title : "Title 2" ,
683683 CreatedAt : time .Now (),
684684 Posts : []* Post {
685- & Post {
685+ {
686686 ID : 3 ,
687687 Title : "Foo" ,
688688 Body : "Bar" ,
689689 },
690- & Post {
690+ {
691691 ID : 4 ,
692692 Title : "Fuubar" ,
693693 Body : "Bas" ,
@@ -770,8 +770,8 @@ func TestMarshalManyWithoutIncluded(t *testing.T) {
770770
771771func TestMarshalMany_SliceOfInterfaceAndSliceOfStructsSameJSON (t * testing.T ) {
772772 structs := []* Book {
773- & Book {ID : 1 , Author : "aren55555" , ISBN : "abc" },
774- & Book {ID : 2 , Author : "shwoodard" , ISBN : "xyz" },
773+ {ID : 1 , Author : "aren55555" , ISBN : "abc" },
774+ {ID : 2 , Author : "shwoodard" , ISBN : "xyz" },
775775 }
776776 interfaces := []interface {}{}
777777 for _ , s := range structs {
@@ -823,16 +823,16 @@ func testBlog() *Blog {
823823 Title : "Title 1" ,
824824 CreatedAt : time .Now (),
825825 Posts : []* Post {
826- & Post {
826+ {
827827 ID : 1 ,
828828 Title : "Foo" ,
829829 Body : "Bar" ,
830830 Comments : []* Comment {
831- & Comment {
831+ {
832832 ID : 1 ,
833833 Body : "foo" ,
834834 },
835- & Comment {
835+ {
836836 ID : 2 ,
837837 Body : "bar" ,
838838 },
@@ -842,16 +842,16 @@ func testBlog() *Blog {
842842 Body : "foo" ,
843843 },
844844 },
845- & Post {
845+ {
846846 ID : 2 ,
847847 Title : "Fuubar" ,
848848 Body : "Bas" ,
849849 Comments : []* Comment {
850- & Comment {
850+ {
851851 ID : 1 ,
852852 Body : "foo" ,
853853 },
854- & Comment {
854+ {
855855 ID : 3 ,
856856 Body : "bas" ,
857857 },
@@ -867,11 +867,11 @@ func testBlog() *Blog {
867867 Title : "Foo" ,
868868 Body : "Bar" ,
869869 Comments : []* Comment {
870- & Comment {
870+ {
871871 ID : 1 ,
872872 Body : "foo" ,
873873 },
874- & Comment {
874+ {
875875 ID : 2 ,
876876 Body : "bar" ,
877877 },
0 commit comments