-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathdefault_on_source_pointer_struct_target_struct_invalid_sig.yml
37 lines (31 loc) · 1.34 KB
/
default_on_source_pointer_struct_target_struct_invalid_sig.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
input:
input.go: |
package execution
// goverter:converter
type Converter interface {
// goverter:default NewOutputWithDefaults
// goverter:default:update
Convert(source Input) (*Output, error)
}
type Input struct { Name string }
type Output struct { Name string }
func NewOutputWithDefaults(string) *Output {
return &Output{ Name: "string" }
}
error: |-
Error while creating converter method:
@workdir/input.go:7
func (github.com/jmattheis/goverter/execution.Converter).Convert(source github.com/jmattheis/goverter/execution.Input) (*github.com/jmattheis/goverter/execution.Output, error)
[source] github.com/jmattheis/goverter/execution.Input
[target] *github.com/jmattheis/goverter/execution.Output
| github.com/jmattheis/goverter/execution.Input
|
source
target
|
| *github.com/jmattheis/goverter/execution.Output
Error using method:
func github.com/jmattheis/goverter/execution.NewOutputWithDefaults(string) *github.com/jmattheis/goverter/execution.Output
[source] string
[target] *github.com/jmattheis/goverter/execution.Output
Method source type mismatches with conversion source: string != github.com/jmattheis/goverter/execution.Input