Skip to content

Commit d90c181

Browse files
authored
chore: change OptionType to alias for usage as string (#377)
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.
1 parent 8804c44 commit d90c181

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

provider/formtype.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
//
1414
// The value have to be string literals, as type constraint keywords are not
1515
// supported in providers.
16-
type OptionType string
16+
type OptionType = string
1717

1818
const (
1919
OptionTypeString OptionType = "string"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy