Comments
Join the discussionNo comments yet. Be the first to comment.
No comments yet. Be the first to comment.
What is hystrix The hytrix settings type CommandConfig struct { Timeout int `json:"timeout"` CommandGroup string `json:"command_group"` MaxConcurrentRequests int `json:"max_concurrent_requests"` Request...
What Reflect can be used for. Reflection can be used to examine type and value info at runtime. How to get the actual type of an interface. package main import ( "fmt" "reflect" ) func typeOf(vals ...interface{}) { for _, v := range val...
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...
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...