MCPcopy Create free account
hub / github.com/driangle/taskmd / mapField

Function mapField

apps/cli/internal/sync/mapper.go:45–55  ·  view source on GitHub ↗
(value string, mapping map[string]string, fallback string)

Source from the content-addressed store, hash-verified

43}
44
45func mapField(value string, mapping map[string]string, fallback string) string {
46 if mapping != nil {
47 if mapped, ok := mapping[value]; ok {
48 return mapped
49 }
50 }
51 if value == "" {
52 return fallback
53 }
54 return fallback
55}

Callers 1

MapExternalTaskFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected