adapters/icon
import "go-cli-template/internal/adapters/icon"Index
type Icon
Icon represents a nerd font icon
type Icon stringconst ( // Bookmarks icon Bookmarks Icon = "\uf097"
// Tmux icon Tmux Icon = "\uebc8"
// Editor icons Nvim Icon = "\uf36f" Vim Icon = "\uf36f"
// File/Script icons File Icon = "\uf15b" // Generic file icon Script Icon = "\ue691" // Script/terminal icon Shell Icon = "\uf489" // Shell icon)func GetEditorIcon
func GetEditorIcon(editor string) IconGetEditorIcon returns the appropriate icon for a given editor
func (Icon) String
func (i Icon) String() stringGet returns the icon as a string
Source
See internal/adapters/icon/ for implementation details.