Post

GoLangGoLang

v
veerubhotla sowmithri

Posted on 5th March 2024|52 views

0
votes

Golang Enum

Explain how to work with enums in Go

Answers
P
kumar san

Posted on 5th March 2024

Enums are also known as Enumerators. They can be used to declare constants with identical behaviour.

  Declaration of Enum
  
  type Day int

"int" is the type of the Enum "Day".
 

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