Type assertion Type assertion is used to get the underlying concrete value of the interface variable. i.(Type) this is the syntax of type assertion, where: i -> interface variable Type -> type that implements the interface Let's see an example of typ...

Markdown supported · ⌘↵ to post
No responses yet.