From beeb2315622e9b282b2bbec1d68fee5c87ed79cc Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 9 Mar 2020 12:14:31 +0200 Subject: [PATCH 1/6] Couple of suggestions --- examples/testing/main_test.go | 3 +-- examples/xml/xml.go | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/examples/testing/main_test.go b/examples/testing/main_test.go index 3bcdd6e..c91540f 100644 --- a/examples/testing/main_test.go +++ b/examples/testing/main_test.go @@ -21,9 +21,8 @@ import ( func IntMin(a, b int) int { if a < b { return a - } else { - return b } + return b } // A test is created by writing a function with a name diff --git a/examples/xml/xml.go b/examples/xml/xml.go index e545106..9870377 100644 --- a/examples/xml/xml.go +++ b/examples/xml/xml.go @@ -8,7 +8,7 @@ import ( "fmt" ) -// This type will be mapped to XML. Similarly to the +// Plant will be mapped to XML. Similarly to the // JSON examples, field tags contain directives for the // encoder and decoder. Here we use some special features // of the XML package: the `XMLName` field name dictates From 5afa5faf66a55818b517081a4f9a5ca1e84a0db1 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 9 Mar 2020 12:43:20 +0200 Subject: [PATCH 2/6] Change xml --- public/xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/xml b/public/xml index 85a2d15..fb37a00 100644 --- a/public/xml +++ b/public/xml @@ -66,7 +66,7 @@ formats with the encoding.xml package.

-

This type will be mapped to XML. Similarly to the +

Plant will be mapped to XML. Similarly to the JSON examples, field tags contain directives for the encoder and decoder. Here we use some special features of the XML package: the XMLName field name dictates From 746d2d5abbda38d2753fe6f54ba242a689404d55 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 9 Mar 2020 12:59:19 +0200 Subject: [PATCH 3/6] change html --- public/testing | 7 +++---- public/xml | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/public/testing b/public/testing index e8a3bc2..385028c 100644 --- a/public/testing +++ b/public/testing @@ -47,7 +47,7 @@ typically lives in the same package as the code it tests.

- +
package main
 
@@ -83,9 +83,8 @@ be named intutils_test.go.

func IntMin(a, b int) int {
     if a < b {
         return a
-    } else {
-        return b
     }
+    return b
 }
 
@@ -232,7 +231,7 @@ when executing go test -v.

diff --git a/public/xml b/public/xml index fb37a00..4c7e048 100644 --- a/public/xml +++ b/public/xml @@ -42,7 +42,7 @@ formats with the encoding.xml package.

- +
package main
 
@@ -281,7 +281,7 @@ to nest all plants under <parent><child>... From 6fed3e7e699ef8226b6316fb53f374679609dc5f Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 9 Mar 2020 13:24:03 +0200 Subject: [PATCH 4/6] Add hash --- examples/testing/testing.hash | 4 ++-- examples/xml/xml.hash | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/testing/testing.hash b/examples/testing/testing.hash index e3a2516..3a02134 100644 --- a/examples/testing/testing.hash +++ b/examples/testing/testing.hash @@ -1,2 +1,2 @@ -017c9d7ba927cdfbcef1643e86f9b8022f13fc31 -jCRgtgRwie3 +8e15d97f54c34ac1546c2ec6589cc1b60ff27f80 +GFuPdlBlyMU diff --git a/examples/xml/xml.hash b/examples/xml/xml.hash index aef8f35..b9354ae 100644 --- a/examples/xml/xml.hash +++ b/examples/xml/xml.hash @@ -1,2 +1,2 @@ -f42dec8593a45931145f0a55f104f2ca34b2d112 -wlkywJsuWqL +d5da1784f3aa0bbba452d21c70833621a62159f4 +RsNLhMBazeX From 22ddaa5fd030d015144f51d8c3b2af4f4fd34f67 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 9 Mar 2020 13:29:54 +0200 Subject: [PATCH 5/6] html changes --- public/testing | 2 +- public/xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/public/testing b/public/testing index 385028c..4061ff4 100644 --- a/public/testing +++ b/public/testing @@ -231,7 +231,7 @@ when executing go test -v.

diff --git a/public/xml b/public/xml index 4c7e048..f27d9f9 100644 --- a/public/xml +++ b/public/xml @@ -281,7 +281,7 @@ to nest all plants under <parent><child>... From 421044f18562d0661219c2a7e6becd91d2a38ba3 Mon Sep 17 00:00:00 2001 From: andrew Date: Mon, 9 Mar 2020 14:33:32 +0200 Subject: [PATCH 6/6] update html --- public/testing | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/testing b/public/testing index 4061ff4..26f4116 100644 --- a/public/testing +++ b/public/testing @@ -231,7 +231,7 @@ when executing go test -v.