MCPcopy
hub / github.com/matryer/xbar / Emojize

Function Emojize

pkg/plugins/emoji.go:907–913  ·  view source on GitHub ↗

Emojize converts emoji names (e.g., :pizza:) to emoji characters.

(s string)

Source from the content-addressed store, hash-verified

905
906// Emojize converts emoji names (e.g., :pizza:) to emoji characters.
907func Emojize(s string) string {
908 for name, emoji := range name2codes {
909 marker := ":" + name + ":"
910 s = strings.ReplaceAll(s, marker, string(emoji))
911 }
912 return s
913}

Callers 1

parseOutputMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected