MCPcopy Create free account
hub / github.com/gokcehan/lf / init

Function init

key.go:131–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129var gValKey map[string]tcell.Key
130
131func init() {
132 gValKey = make(map[string]tcell.Key, len(gKeyVal))
133 for k, v := range gKeyVal {
134 gValKey[v] = k
135 }
136}
137
138// for simplicity, assume there will only be one modifier (ctrl, shift or alt)
139var reModKey = regexp.MustCompile(`<(c|s|a)-(.+)>`)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected