type state struct{
name string
zipcode string
}
I want to convert this to any.Any type, plzz help!
If I understood correctly, you're trying to convert to the any
which is an alias to interface{}
.
You can do
y := interface{}(x)
z := any(x)
But I'm curious why you need this, maybe you're having a XY Problem