https://github.com/litsynp/enums-in-go
Different ways to use enums in Go
https://github.com/litsynp/enums-in-go
go
Last synced: 4 months ago
JSON representation
Different ways to use enums in Go
- Host: GitHub
- URL: https://github.com/litsynp/enums-in-go
- Owner: litsynp
- Created: 2024-08-18T14:01:01.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T15:25:06.000Z (11 months ago)
- Last Synced: 2024-12-27T05:41:35.394Z (6 months ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# enums in go
Tests different methods of using enums in Go.
1. iota
2. string enum
3. iota + stringer + go generateAnd also introduces a simple web server which gets a day of week as input, validates it, and outputs a json result.