logo-MindMajix
PostGoLangGoLang
s
sri kanth

Posted on 23rd July 2024|14 views

0
votes

Go Type Assertion

Define Type Assertion?

1 answers
Answers
P
jordan chris

Posted on 23rd July 2024| views

Type Assertion offers access to the substantial basic value of the interface value. 

Example;

b := c.(A)

The above statement implies that the interface value "c" maintains the concrete type "A" and allocates the underlying "A' value to the variable "b".
 

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