Skip to content

chore: change OptionType to alias for usage as string #377

New issue

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

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

Already on GitHub? # to your account

Merged
merged 1 commit into from
Apr 9, 2025
Merged

Conversation

Emyrk
Copy link
Member

@Emyrk Emyrk commented Apr 9, 2025

To be backwards compatible using this repo as a library, use a string alias. This allows using the 'type' as a string or the new enum. Since enum validation is quite weak in Go, this is baiscally functionally equvialent.

This fixes a compile time issue in coder/coder when using the latest of this repo.

To be backwards compatible using this repo as a library, use a string
alias. This allows using the 'type' as a `string` or the new enum.
Since enum validation is quite weak in Go, this is baiscally
functionally equvialent.
@Emyrk Emyrk requested a review from dannykopping April 9, 2025 13:55
@Emyrk Emyrk merged commit d90c181 into main Apr 9, 2025
6 checks passed
@Emyrk Emyrk deleted the steven/alias branch April 9, 2025 14:04
@github-actions github-actions bot locked and limited conversation to collaborators Apr 9, 2025
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants