-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
clear_send_form_values_gen.go
40 lines (35 loc) · 1.01 KB
/
clear_send_form_values_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
// +build !generate
package hit
import errortrace "github.com/Eun/go-hit/errortrace"
// ⚠️⚠️⚠️ This file was autogenerated by generators/clear/clear ⚠️⚠️⚠️ //
// IClearSendFormValues provides methods to clear steps.
type IClearSendFormValues interface {
IStep
// Add clears all matching Add steps
Add(value ...interface{}) IStep
}
type clearSendFormValues struct {
cp callPath
tr *errortrace.ErrorTrace
}
func newClearSendFormValues(cp callPath) IClearSendFormValues {
return &clearSendFormValues{cp: cp, tr: ett.Prepare()}
}
func (v *clearSendFormValues) trace() *errortrace.ErrorTrace {
return v.tr
}
func (*clearSendFormValues) when() StepTime {
return cleanStep
}
func (v *clearSendFormValues) callPath() callPath {
return v.cp
}
func (v *clearSendFormValues) exec(hit *hitImpl) error {
if err := removeSteps(hit, v.callPath()); err != nil {
return err
}
return nil
}
func (v *clearSendFormValues) Add(value ...interface{}) IStep {
return removeStep(v.callPath().Push("Add", value))
}