---
title: "Discussion on \"Creating Enums type in GO\" | Hashnode"
description: "Discussion on \"Creating Enums type in GO\". Ahh ! Why does Go Not support Enums . Well There is a workaround you can use to make Enum like setup in Go.\nWell Go lang support only string and int as const\nOne of the ways is to do it this way.\nCreate a Type for you Enum and what all you want with ..."
url: "https://hashnode.com/posts/creating-enums-type-in-go/622aea258ea100a5ef186688"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating Enums type in GO](https://prakharporwal.hashnode.dev/creating-enums-type-in-go?utm_source=hashnode&utm_medium=feed)

Ahh ! Why does Go Not support Enums . Well There is a workaround you can use to make Enum like setup in Go. Well Go lang support only string and int as const One of the ways is to do it this way. Create a Type for you Enum and what all you want with ...

Mar 11, 2022 · 2 min read · prakharporwal.hashnode.dev  
Read the article

-   [#go](https://hashnode.com/tag/go)
-   [#error-handling](https://hashnode.com/tag/error-handling)

## Written by

[Prakhar Porwal](https://hashnode.com/@prakharporwal)

@prakharporwal · Kota, India

  
[View profile](https://hashnode.com/@prakharporwal)

Blogs about Cloud | DevOps | AWS | Go

Actively looking for opportunites in DevOps | Fullstack Engineer . I write APIs using Go and React components for the UI. Connect with me on twitter : https://twitter.com/prakhartwt Check my work at github : https://github.com/prakharporwal

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
