We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca46604 commit b0bf70aCopy full SHA for b0bf70a
enums/enums.go
@@ -16,7 +16,7 @@ type Descriptor struct {
16
// MemberDescriptor is a struct that describes an enum member.
17
type MemberDescriptor struct {
18
Name string `json:"name"`
19
- Value int `json:"value"`
+ Value any `json:"value"`
20
Description string `json:"description"`
21
}
22
@@ -49,3 +49,6 @@ func (r *Registry) LookupDescriptor(name string) *Descriptor {
49
50
return r.descriptors[name]
51
52
+
53
+// DefaultRegistry is the default [Registry].
54
+var DefaultRegistry = &Registry{}
0 commit comments