-
-
Notifications
You must be signed in to change notification settings - Fork 51
/
Copy pathcontext_error_missing.yml
42 lines (36 loc) · 1.36 KB
/
context_error_missing.yml
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
41
42
input:
input.go: |
package example
// goverter:converter
// goverter:extend DoLookup
type Converter interface {
Convert(source []string) []Output
}
// goverter:context ctx
func DoLookup(id string, ctx map[string]Output) Output {
return ctx[id]
}
type Output struct {
Name string
Age int
}
error: |-
Error while creating converter method:
@workdir/input.go:6
func (github.com/jmattheis/goverter/execution.Converter).Convert(source []string) []github.com/jmattheis/goverter/execution.Output
[source] []string
[target] []github.com/jmattheis/goverter/execution.Output
| []string
|
| | string
| |
source[]
target[]
| |
| | github.com/jmattheis/goverter/execution.Output
|
| []github.com/jmattheis/goverter/execution.Output
Found custom functions(s) converting string to github.com/jmattheis/goverter/execution.Output
but not all required context params are available in the current method.
func github.com/jmattheis/goverter/execution.DoLookup(id string, ctx map[string]github.com/jmattheis/goverter/execution.Output) github.com/jmattheis/goverter/execution.Output:
[missing] map[string]github.com/jmattheis/goverter/execution.Output