Post

GoLangGoLang

s
sri kanth

Posted on 26th April 2024|12 views

0
votes

Go Type Assertion

Define Type Assertion?

Answers
P
jordan chris

Posted on 26th April 2024

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