Post

GoLangGoLang

S
Surya kumar

Posted on 19th April 2024|15 views

0
votes

Golang Type Assertion

Define Type Assertion

Answers
P
Harshel Mike

Posted on 19th April 2024

The type Assertion provides access to an interface value that is underlying the concrete value.

t := i.(T)

Here, the interface value “i” holds the concrete value “T”  and assigns it to the variable t. 

 

Write your answer

STILL GOT QUERIES?

Get a Live FREE Demo
  • Explore the trending and niche courses and learning maps
  • Learn about tuition fee, payment plans, and scholarships
  • Get access to webinars and self-paced learning videos