golang enum best practice

  1. Use const block to define the enum values.
  2. Create a new type to represent the enum.
  3. Add a method to the enum type to provide a string representation of the enum value.