Posted on 26th July 2024|15 views
Define Type Assertion
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.