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.
|
- 
+ 
@@ -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 .
|