-
-
Notifications
You must be signed in to change notification settings - Fork 50
/
enum_exclude_invalid3.yml
41 lines (35 loc) · 1.03 KB
/
enum_exclude_invalid3.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
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
// goverter:enum:exclude
type Converter interface {
Convert(input.Color) output.Color
}
input/enum.go: |
package input
type Color string
const (
Green Color = "green"
Blue Color = "blue"
Red Color = "red"
)
output/enum.go: |
package output
type Color string
const (
Green Color = "green"
Blue Color = "blue"
Red Color = "red"
)
error: |-
error parsing 'goverter:enum:exclude' at
@workdir/input.go:11
github.com/jmattheis/goverter/execution.Converter
method name pattern is required in the custom method "".
See https://goverter.jmattheis.de/reference/extend