Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 generate

And also introduces a simple web server which gets a day of week as input, validates it, and outputs a json result.