MCPcopy Create free account
hub / github.com/go-task/task / Len

Method Len

taskfile/ast/include.go:54–61  ·  view source on GitHub ↗

Len returns the number of includes in the Includes map.

()

Source from the content-addressed store, hash-verified

52
53// Len returns the number of includes in the Includes map.
54func (includes *Includes) Len() int {
55 if includes == nil || includes.om == nil {
56 return 0
57 }
58 defer includes.mutex.RUnlock()
59 includes.mutex.RLock()
60 return includes.om.Len()
61}
62
63// Get returns the value the the include with the provided key and a boolean
64// that indicates if the value was found or not. If the value is not found, the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected