Post

GoLangGoLang

H
Harshel Mike

Posted on 17th April 2024|99 views

0
votes

Golang Cast To Interface

How to convert struct pointer to interface?

Answers
P
Anusha V

Posted on 17th April 2024

Struct Pointer can be converted to Interface through the following code:

type foo struct1
[
}
Func1 bar1(baz interface{} )
{
}


 

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