fix(messaging): import codegen files

This commit is contained in:
Tit Petric
2019-03-31 16:51:54 +02:00
parent 1a9525ce7d
commit 37f24d01fb
2 changed files with 41 additions and 35 deletions
-35
View File
@@ -8,11 +8,6 @@ type (
//
// This type is auto-generated.
CommandSet []*Command
// CommandParamSet slice of CommandParam
//
// This type is auto-generated.
CommandParamSet []*CommandParam
)
// Walk iterates through every slice item and calls w(Command) err
@@ -44,33 +39,3 @@ func (set CommandSet) Filter(f func(*Command) (bool, error)) (out CommandSet, er
return
}
// Walk iterates through every slice item and calls w(CommandParam) err
//
// This function is auto-generated.
func (set CommandParamSet) Walk(w func(*CommandParam) error) (err error) {
for i := range set {
if err = w(set[i]); err != nil {
return
}
}
return
}
// Filter iterates through every slice item, calls f(CommandParam) (bool, err) and return filtered slice
//
// This function is auto-generated.
func (set CommandParamSet) Filter(f func(*CommandParam) (bool, error)) (out CommandParamSet, err error) {
var ok bool
out = CommandParamSet{}
for i := range set {
if ok, err = f(set[i]); err != nil {
return
} else if ok {
out = append(out, set[i])
}
}
return
}
+41
View File
@@ -0,0 +1,41 @@
package types
// Hello! This file is auto-generated.
type (
// CommandParamSet slice of CommandParam
//
// This type is auto-generated.
CommandParamSet []*CommandParam
)
// Walk iterates through every slice item and calls w(CommandParam) err
//
// This function is auto-generated.
func (set CommandParamSet) Walk(w func(*CommandParam) error) (err error) {
for i := range set {
if err = w(set[i]); err != nil {
return
}
}
return
}
// Filter iterates through every slice item, calls f(CommandParam) (bool, err) and return filtered slice
//
// This function is auto-generated.
func (set CommandParamSet) Filter(f func(*CommandParam) (bool, error)) (out CommandParamSet, err error) {
var ok bool
out = CommandParamSet{}
for i := range set {
if ok, err = f(set[i]); err != nil {
return
} else if ok {
out = append(out, set[i])
}
}
return
}