MCPcopy
hub / github.com/wailsapp/wails / Stringify

Function Stringify

v2/pkg/menu/keys/stringify.go:33–41  ·  view source on GitHub ↗
(accelerator *Accelerator, platform string)

Source from the content-addressed store, hash-verified

31}
32
33func Stringify(accelerator *Accelerator, platform string) string {
34 result := slicer.String()
35 for _, modifier := range accelerator.Modifiers {
36 result.Add(modifierStringMap[platform][modifier])
37 }
38 result.Deduplicate()
39 result.Add(strings.ToUpper(accelerator.Key))
40 return result.Join("+")
41}

Callers 1

TestStringifyFunction · 0.70

Calls 2

AddMethod · 0.65
StringMethod · 0.45

Tested by 1

TestStringifyFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…