v1 #1

Merged
dmitry merged 6 commits from v1 into main 2025-04-20 21:05:14 +03:00
Showing only changes of commit 2cb9177913 - Show all commits

View File

@@ -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
} }