Skip to content

adapters/icon

import "go-cli-template/internal/adapters/icon"

Index

type Icon

Icon represents a nerd font icon

type Icon string

const (
// 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) Icon

GetEditorIcon returns the appropriate icon for a given editor

func (Icon) String

func (i Icon) String() string

Get returns the icon as a string

Source

See internal/adapters/icon/ for implementation details.