Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd90c181

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 stringalias. This allows using the 'type' as a `string` or the new enum.Since enum validation is quite weak in Go, this is baiscallyfunctionally equvialent.
1 parent8804c44 commitd90c181

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-
typeOptionTypestring
16+
typeOptionType=string
1717

1818
const (
1919
OptionTypeStringOptionType="string"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp