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

Method DeepCopy

taskfile/ast/vars.go:168–177  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

166}
167
168func (vs *Vars) DeepCopy() *Vars {
169 if vs == nil {
170 return nil
171 }
172 defer vs.mutex.RUnlock()
173 vs.mutex.RLock()
174 return &Vars{
175 om: deepcopy.OrderedMap(vs.om),
176 }
177}
178
179func (vs *Vars) UnmarshalYAML(node *yaml.Node) error {
180 if vs == nil || vs.om == nil {

Callers

nothing calls this directly

Calls 1

OrderedMapFunction · 0.92

Tested by

no test coverage detected