Skip to content

Commit c3becde

Browse files
committed
go lint fixes
1 parent 310d9bf commit c3becde

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/config_file_example.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"strings"
88
)
99

10-
func loadJsonConfig() map[string]interface{} {
10+
func loadJSONConfig() map[string]interface{} {
1111
var result map[string]interface{}
1212
jsonData := []byte(`{"--force": true, "--timeout": "10", "--baud": "9600"}`)
1313
json.Unmarshal(jsonData, &result)
@@ -63,7 +63,7 @@ func main() {
6363
config_file_example serial <port> [--baud=<rate>] [--timeout=<seconds>]
6464
config_file_example -h | --help | --version`
6565

66-
jsonConfig := loadJsonConfig()
66+
jsonConfig := loadJSONConfig()
6767
iniConfig := loadIniConfig()
6868
arguments, _ := docopt.Parse(usage, nil, true, "0.1.1rc", false)
6969

examples/type_assert_example.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func main() {
1515

1616
fmt.Println(arguments)
1717

18-
var x bool = arguments["-x"].(bool) // type assertion required
18+
var x = arguments["-x"].(bool) // type assertion required
1919
if x == true {
2020
fmt.Println("x is true")
2121
}

0 commit comments

Comments
 (0)