Skip to content

Instantly share code, notes, and snippets.

@artemnikitin
Last active July 7, 2018 23:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save artemnikitin/ebab5a3037b985e51fccadeba37c7c63 to your computer and use it in GitHub Desktop.
Save artemnikitin/ebab5a3037b985e51fccadeba37c7c63 to your computer and use it in GitHub Desktop.
Proposal for enum support in Go implementation of Flatdata

First of all, in Go there are no enums. The common way of implementing enum-like functionality is via constants:

const(
	ConstantText = ""
	ConstantInt int64 = 2342423324
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment