SyntaxFix
Write A Post
Hire A Developer
Questions
Convert interface{} into any type.
interface{}
Syntax:
result := interface.(datatype)
Example:
var employee interface{} = []string{"Jhon", "Arya"} result := employee.([]string) //result type is []string.