Post
GoLang
Posted on 19th April 2024|15 views
Define Type Assertion
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.
STILL GOT QUERIES?