Post

GoLangGoLang

S
Surya kumar

Posted on 26th February 2024|14 views

0
votes

Golang Type Assertion

Define Type Assertion

Answers
P
Harshel Mike

Posted on 26th February 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