Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants