File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ func (v Value) IsNumber() bool {
59
59
60
60
// AsInt32 returns a BSON number as an int32. If the BSON type is not a numeric one, this method
61
61
// will panic.
62
- //
63
- // TODO(skriptble): Add support for Decimal128.
64
62
func (v Value ) AsInt32 () int32 {
65
63
if ! v .IsNumber () {
66
64
panic (ElementTypeError {"bsoncore.Value.AsInt32" , v .Type })
@@ -93,8 +91,6 @@ func (v Value) AsInt32() int32 {
93
91
94
92
// AsInt32OK functions the same as AsInt32 but returns a boolean instead of panicking. False
95
93
// indicates an error.
96
- //
97
- // TODO(skriptble): Add support for Decimal128.
98
94
func (v Value ) AsInt32OK () (int32 , bool ) {
99
95
if ! v .IsNumber () {
100
96
return 0 , false
@@ -127,8 +123,6 @@ func (v Value) AsInt32OK() (int32, bool) {
127
123
128
124
// AsInt64 returns a BSON number as an int64. If the BSON type is not a numeric one, this method
129
125
// will panic.
130
- //
131
- // TODO(skriptble): Add support for Decimal128.
132
126
func (v Value ) AsInt64 () int64 {
133
127
if ! v .IsNumber () {
134
128
panic (ElementTypeError {"bsoncore.Value.AsInt64" , v .Type })
@@ -162,8 +156,6 @@ func (v Value) AsInt64() int64 {
162
156
163
157
// AsInt64OK functions the same as AsInt64 but returns a boolean instead of panicking. False
164
158
// indicates an error.
165
- //
166
- // TODO(skriptble): Add support for Decimal128.
167
159
func (v Value ) AsInt64OK () (int64 , bool ) {
168
160
if ! v .IsNumber () {
169
161
return 0 , false
You can’t perform that action at this time.
0 commit comments