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

Method DeepCopy

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

Source from the content-addressed store, hash-verified

75}
76
77func (v *VarsWithValidation) DeepCopy() *VarsWithValidation {
78 if v == nil {
79 return nil
80 }
81 return &VarsWithValidation{
82 Name: v.Name,
83 Enum: v.Enum.DeepCopy(),
84 }
85}
86
87// UnmarshalYAML implements yaml.Unmarshaler interface.
88func (v *VarsWithValidation) UnmarshalYAML(node *yaml.Node) error {

Callers

nothing calls this directly

Calls 1

DeepCopyMethod · 0.65

Tested by

no test coverage detected