-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathenum_transform_missing.yml
36 lines (30 loc) · 1000 Bytes
/
enum_transform_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
input:
input.go: |
package example
import (
input "github.com/jmattheis/goverter/execution/input"
output "github.com/jmattheis/goverter/execution/output"
)
// goverter:converter
// goverter:enum:unknown @panic
type Converter interface {
// goverter:enum:transform not-existing
Convert(input.Color) output.Color
}
input/enum.go: |
package input
type Color int
const (
ColorGreen Color = iota
)
output/enum.go: |
package output
type Color string
const (
ColGreen Color = "green"
)
error: |-
error parsing 'goverter:enum:transform' at
@workdir/input.go:12
func (github.com/jmattheis/goverter/execution.Converter).Convert(github.com/jmattheis/goverter/execution/input.Color) github.com/jmattheis/goverter/execution/output.Color
transformer "not-existing" does not exist