aboutsummaryrefslogtreecommitdiff
path: root/internal/behavior/desc.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/behavior/desc.go')
-rw-r--r--internal/behavior/desc.go19
1 files changed, 0 insertions, 19 deletions
diff --git a/internal/behavior/desc.go b/internal/behavior/desc.go
index ca4bf69..f6dbaf3 100644
--- a/internal/behavior/desc.go
+++ b/internal/behavior/desc.go
@@ -1,27 +1,8 @@
package behavior
-import "gopkg.in/yaml.v3"
-
type DescVariant struct {
Text string `yaml:"text"`
Condition *Condition `yaml:"condition,omitempty"`
}
type DescList []DescVariant
-
-func (dl *DescList) UnmarshalYAML(value *yaml.Node) error {
- if value.Kind == yaml.ScalarNode {
- var s string
- if err := value.Decode(&s); err != nil {
- return err
- }
- *dl = DescList{{Text: s}}
- return nil
- }
- var entries []DescVariant
- if err := value.Decode(&entries); err != nil {
- return err
- }
- *dl = entries
- return nil
-}