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 a7772e4 commit c609828Copy full SHA for c609828
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