Post

GoLangGoLang

A
Anusha V

Posted on 26th February 2024|52 views

0
votes

Golang Anonymous Struct

What is an anonymous struct in Golang?

Answers
P
kumar san

Posted on 26th February 2024

An anonymous struct means a struct including no explicitly described derived struct type. However, within the case of an anonymous struct, we do not specify any derived struct type also we build a struct by determining the inline struct type including initial values of that struct fields within the identical syntax.

 

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