What's the meaning of interface{} in golang?

Answer • 1 Asked • Jun 21 2019
I'm new to interfaces and trying to do SOAP request by github I don't understand the meaning of
Msg interface{}
in this code:
type Envelope struct { Body `xml:"soap:"` } type Body struct { Msg interface{} }

I've observed the same syntax in
fmt.Println

but don't understand what's being achieved by interface{}

Write your answer...

On a mission to build Next-Gen Community Platform for Developers