-
-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathcwd.yml
33 lines (27 loc) · 825 Bytes
/
cwd.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
input:
pkg1/input.go: |
package pkg1
// goverter:converter
// goverter:output:file @cwd/generated/output.go
type Converter interface {
Convert(source Input) Output
}
type Input struct {
ID int
}
type Output struct {
ID int
}
patterns:
- github.com/jmattheis/goverter/execution/pkg1
success:
- generated/output.go: |
// Code generated by github.com/jmattheis/goverter, DO NOT EDIT.
package generated
import pkg1 "github.com/jmattheis/goverter/execution/pkg1"
type ConverterImpl struct{}
func (c *ConverterImpl) Convert(source pkg1.Input) pkg1.Output {
var pkg1Output pkg1.Output
pkg1Output.ID = source.ID
return pkg1Output
}