Nothing here yet.
Nothing here yet.
Dec 12, 2021 · 3 min read · What is sync.Map sync map is concurrent safe map data type. Use Cases used to store keys and values in multiple concurrent goroutines. Example valueStore is a sync map used to store values in multiple goroutines. after all goroutines finished store d...
Join discussionDec 12, 2021 · 2 min read · there are three way to declare a slice in golang. define slice // use slice literal var slice []int // use make without cap var slice = make([]int, 10) // len == cap = 10 // use make with cap var slice = make([]int, 0, 10) // len=0. cap = 10 // The a...
Join discussion