MCPcopy Index your code
hub / github.com/alecthomas/devtodo2 / PriorityFromString

Function PriorityFromString

todo.go:124–129  ·  view source on GitHub ↗
(priority string)

Source from the content-addressed store, hash-verified

122}
123
124func PriorityFromString(priority string) Priority {
125 if p, ok := priorityMapFromString[priority]; ok {
126 return p
127 }
128 return MEDIUM
129}
130
131var orderFromString = map[string]Order{
132 "index": INDEX,

Callers 5

processActionFunction · 0.92
handleAddMethod · 0.92
handleEditMethod · 0.92
fromMarshalableTaskFunction · 0.85
parseXMLNoteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected