Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

review our pseudo enum implementation #188

Open
plastikfan opened this issue Sep 7, 2023 · 0 comments
Open

review our pseudo enum implementation #188

plastikfan opened this issue Sep 7, 2023 · 0 comments
Assignees
Labels
refactor Refactor code

Comments

@plastikfan
Copy link
Contributor

plastikfan commented Sep 7, 2023

It looks like there is another way to do enums in go. We can use something called stringer

This looks like it will break a lot of code across snivilised, but I did not know about this before, as I was just learning go. I discovered this as a result of learning how to use go:generate

@plastikfan plastikfan added the refactor Refactor code label Sep 7, 2023
@plastikfan plastikfan self-assigned this Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactor Refactor code
Projects
None yet
Development

No branches or pull requests

1 participant