-
Notifications
You must be signed in to change notification settings - Fork 3
/
interaction-opt.gen.go
135 lines (122 loc) · 2.93 KB
/
interaction-opt.gen.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// GENERATED BY ./internal/cmd/gen-opt/ DO NOT EDIT.
package corde
// String returns the Option with key k of type string
func (o OptionsInteractions) String(k string) (string, error) {
var v string
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}
// Int returns the Option with key k of type int
func (o OptionsInteractions) Int(k string) (int, error) {
var v int
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}
// Int32 returns the Option with key k of type int32
func (o OptionsInteractions) Int32(k string) (int32, error) {
var v int32
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}
// Int64 returns the Option with key k of type int64
func (o OptionsInteractions) Int64(k string) (int64, error) {
var v int64
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}
// Uint returns the Option with key k of type uint
func (o OptionsInteractions) Uint(k string) (uint, error) {
var v uint
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}
// Uint32 returns the Option with key k of type uint32
func (o OptionsInteractions) Uint32(k string) (uint32, error) {
var v uint32
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}
// Uint64 returns the Option with key k of type uint64
func (o OptionsInteractions) Uint64(k string) (uint64, error) {
var v uint64
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}
// Float32 returns the Option with key k of type float32
func (o OptionsInteractions) Float32(k string) (float32, error) {
var v float32
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}
// Float64 returns the Option with key k of type float64
func (o OptionsInteractions) Float64(k string) (float64, error) {
var v float64
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}
// Bool returns the Option with key k of type bool
func (o OptionsInteractions) Bool(k string) (bool, error) {
var v bool
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}
// Snowflake returns the Option with key k of type Snowflake
func (o OptionsInteractions) Snowflake(k string) (Snowflake, error) {
var v Snowflake
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}
// Any returns the Option with key k of type any
func (o OptionsInteractions) Any(k string) (any, error) {
var v any
if raw, ok := o[k]; ok {
if err := raw.UnmarshalTo(&v); err != nil {
return v, err
}
}
return v, nil
}