Re:Map[string]interface{} in Go: a user's manual
by nixpulvis on Monday July 26, 2021 @03:22PM
(#27964082)
I will continue to think of interface{} as Any in Rust.
Re:Map[string]interface{} in Go: a user's manual
by ibraheemdev on Monday July 26, 2021 @04:30PM
(#27965029)
`interface{}` used as a type is almost exactly `Box<dyn Any>`.
Interfaces in go are simply saying "this thing satifies these properties". interface{} is an interface that anything can satisfy.