You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
func main() {
x := map[int]string{1:"anil",2:"xyz"}
find(x)
}
func find(x interface{}){
v := reflect.ValueOf(x)
//didn't get how to access keys of passed map x here..
}
The text was updated successfully, but these errors were encountered:
package main
import (
"fmt"
"reflect" )
func main() {
x := map[int]string{1:"anil",2:"xyz"}
find(x)
}
func find(x interface{}){
v := reflect.ValueOf(x)
//didn't get how to access keys of passed map x here..
}
The text was updated successfully, but these errors were encountered: