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

Method Set

taskfile/ast/matrix.go:53–61  ·  view source on GitHub ↗
(key string, value *MatrixRow)

Source from the content-addressed store, hash-verified

51}
52
53func (matrix *Matrix) Set(key string, value *MatrixRow) bool {
54 if matrix == nil {
55 matrix = NewMatrix()
56 }
57 if matrix.om == nil {
58 matrix.om = orderedmap.NewOrderedMap[string, *MatrixRow]()
59 }
60 return matrix.om.Set(key, value)
61}
62
63// All returns an iterator that loops over all task key-value pairs.
64func (matrix *Matrix) All() iter.Seq2[string, *MatrixRow] {

Callers 2

NewMatrixFunction · 0.95
UnmarshalYAMLMethod · 0.95

Calls 1

NewMatrixFunction · 0.85

Tested by

no test coverage detected