logo-MindMajix
PostGoLangGoLang
S
Surya kumar

Posted on 26th July 2024|15 views

0
votes

Golang Type Assertion

Define Type Assertion

1 answers
Answers
P
Harshel Mike

Posted on 26th July 2024| views

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
Name
Course *
Email *
Phone Number