MCPcopy
hub / github.com/go-task/task / DeepCopy

Method DeepCopy

taskfile/ast/requires.go:32–40  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30}
31
32func (e *Enum) DeepCopy() *Enum {
33 if e == nil {
34 return nil
35 }
36 return &Enum{
37 Ref: e.Ref,
38 Value: deepcopy.Slice(e.Value),
39 }
40}
41
42// UnmarshalYAML implements yaml.Unmarshaler interface.
43func (e *Enum) UnmarshalYAML(node *yaml.Node) error {

Callers

nothing calls this directly

Calls 1

SliceFunction · 0.92

Tested by

no test coverage detected