logo-MindMajix
PostGoLangGoLang
v
veerubhotla sowmithri

Posted on 26th July 2024|68 views

0
votes

Golang Enum

Explain how to work with enums in Go

1 answers
Answers
P
kumar san

Posted on 26th July 2024| views

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