-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.go
More file actions
34 lines (29 loc) · 903 Bytes
/
types.go
File metadata and controls
34 lines (29 loc) · 903 Bytes
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
package conditional
// ConditionalInput is input for conditional workflow example
type ConditionalInput struct {
Value int `json:"value"`
EnableDoubling bool `json:"enable_doubling"`
EnableFormatting bool `json:"enable_formatting"`
}
// DoubleInput for the doubling step
type DoubleInput struct {
Value int `json:"value"`
}
// DoubleOutput from the doubling step
type DoubleOutput struct {
Value int `json:"value"`
Doubled bool `json:"doubled"`
Message string `json:"message,omitempty"`
}
// ConditionalFormatInput for the formatting step
type ConditionalFormatInput struct {
Value int `json:"value"`
Doubled bool `json:"doubled"`
Message string `json:"message,omitempty"`
}
// ConditionalFormatOutput final output
type ConditionalFormatOutput struct {
Value int `json:"value"`
Formatted string `json:"formatted"`
Doubled bool `json:"doubled"`
}