News for hackers. Stuff that matters.
Re:Map[string]interface{} in Go: a user's manual by nixpulvis on Monday July 26, 2021 @02:42PM (#27963461)
Runtime safe and statically type checked are two fundamentally different things is my point. Interfaces in most typed languages are static concepts, though there are always exceptions.
Re:Map[string]interface{} in Go: a user's manual by strbean on Monday July 26, 2021 @03:01PM (#27963750)
You can think of interface{} like Object in Java.

Interfaces in go are simply saying "this thing satifies these properties". interface{} is an interface that anything can satisfy.

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>`.