{"id":73,"date":"2019-03-18T16:38:18","date_gmt":"2019-03-18T16:38:18","guid":{"rendered":"https:\/\/golangbyexamples.com\/?p=73"},"modified":"2020-03-09T23:43:34","modified_gmt":"2020-03-09T23:43:34","slug":"interface-to-struct","status":"publish","type":"post","link":"https:\/\/golangbyexamples.com\/interface-to-struct\/","title":{"rendered":"Interface to struct in Go (Golang)"},"content":{"rendered":"\n
We come around a situation sometimes in programming where an empty interface might a struct internally and we have to get the concrete struct out of it. Whoever is not aware of what an empty interface is should read this excellent article: https:\/\/research.swtch.com\/interfaces. <\/p>\n\n\n\n