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.
2 parents e2c26d3 + c609828 commit 051af9fCopy full SHA for 051af9f
result.go
@@ -82,6 +82,14 @@ func NewBoolSliceResult(val []bool, err error) *BoolSliceCmd {
82
return &cmd
83
}
84
85
+// NewFloatSliceResult returns a FloatSliceCmd initialised with val and err for testing.
86
+func NewFloatSliceResult(val []float64, err error) *FloatSliceCmd {
87
+ var cmd FloatSliceCmd
88
+ cmd.val = val
89
+ cmd.SetErr(err)
90
+ return &cmd
91
+}
92
+
93
// NewMapStringStringResult returns a MapStringStringCmd initialised with val and err for testing.
94
func NewMapStringStringResult(val map[string]string, err error) *MapStringStringCmd {
95
var cmd MapStringStringCmd
0 commit comments