go lint fixes
diff --git a/examples/config_file_example.go b/examples/config_file_example.go
index e039fa7..415a43b 100644
--- a/examples/config_file_example.go
+++ b/examples/config_file_example.go
@@ -7,7 +7,7 @@
"strings"
)
-func loadJsonConfig() map[string]interface{} {
+func loadJSONConfig() map[string]interface{} {
var result map[string]interface{}
jsonData := []byte(`{"--force": true, "--timeout": "10", "--baud": "9600"}`)
json.Unmarshal(jsonData, &result)
@@ -63,7 +63,7 @@
config_file_example serial <port> [--baud=<rate>] [--timeout=<seconds>]
config_file_example -h | --help | --version`
- jsonConfig := loadJsonConfig()
+ jsonConfig := loadJSONConfig()
iniConfig := loadIniConfig()
arguments, _ := docopt.Parse(usage, nil, true, "0.1.1rc", false)
diff --git a/examples/type_assert_example.go b/examples/type_assert_example.go
index 6db9a9a..14b6e6e 100644
--- a/examples/type_assert_example.go
+++ b/examples/type_assert_example.go
@@ -15,7 +15,7 @@
fmt.Println(arguments)
- var x bool = arguments["-x"].(bool) // type assertion required
+ var x = arguments["-x"].(bool) // type assertion required
if x == true {
fmt.Println("x is true")
}