Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/litsynp/enums-in-go
Different ways to use enums in Go
https://github.com/litsynp/enums-in-go
go
Last synced: about 10 hours 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 (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T15:25:06.000Z (3 months ago)
- Last Synced: 2024-09-16T05:54:22.459Z (about 2 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.