fix: typo
This commit is contained in:
@@ -82,7 +82,7 @@ func main() {
|
|||||||
m, _ := config.Get("map").Map() // return conf.Map and error if any
|
m, _ := config.Get("map").Map() // return conf.Map and error if any
|
||||||
fmt.Printf("%T, %v\n", m, m) // conf.Map, map[a:1 b:2 c:3]
|
fmt.Printf("%T, %v\n", m, m) // conf.Map, map[a:1 b:2 c:3]
|
||||||
|
|
||||||
// key "a" can be interpreted as int
|
// key "с" can be interpreted as int
|
||||||
x, _ := m.Get("c").Int()
|
x, _ := m.Get("c").Int()
|
||||||
fmt.Println(x) // prints 3
|
fmt.Println(x) // prints 3
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user