logo-MindMajix
PostGoLangGoLang
H
Harshel Mike

Posted on 25th July 2024|102 views

0
votes

Golang Cast To Interface

How to convert struct pointer to interface?

1 answers
Answers
P
Anusha V

Posted on 25th July 2024| views

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
Name
Course *
Email *
Phone Number