diff options
-rw-r--r-- | content/json-and-go.article | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/content/json-and-go.article b/content/json-and-go.article index 4a1ae36..4a9f55a 100644 --- a/content/json-and-go.article +++ b/content/json-and-go.article @@ -163,8 +163,8 @@ We can then iterate through the map with a range statement and use a type switch switch vv := v.(type) { case string: fmt.Println(k, "is string", vv) - case int: - fmt.Println(k, "is int", vv) + case float64: + fmt.Println(k, "is float64", vv) case []interface{}: fmt.Println(k, "is an array:") for i, u := range vv { |