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

Method DeepCopy

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

Source from the content-addressed store, hash-verified

13}
14
15func (r *Requires) DeepCopy() *Requires {
16 if r == nil {
17 return nil
18 }
19
20 return &Requires{
21 Vars: deepcopy.Slice(r.Vars),
22 }
23}
24
25// Enum represents an enum constraint for a required variable.
26// It can either be a static list of values or a reference to another variable.

Callers

nothing calls this directly

Calls 1

SliceFunction · 0.92

Tested by

no test coverage detected