fileicon

package
v1.26.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicEntryIconHTML added in v1.24.3

func BasicEntryIconHTML(entry *EntryInfo) template.HTML

func BasicEntryIconName added in v1.24.3

func BasicEntryIconName(entry *EntryInfo) string

func RenderEntryIconHTML added in v1.24.3

func RenderEntryIconHTML(renderedIconPool *RenderedIconPool, entry *EntryInfo) template.HTML

Types

type EntryInfo added in v1.24.3

type EntryInfo struct {
	BaseName      string
	EntryMode     git.EntryMode
	SymlinkToMode git.EntryMode
	IsOpen        bool
}

func EntryInfoFolder added in v1.24.3

func EntryInfoFolder() *EntryInfo

func EntryInfoFolderOpen added in v1.24.3

func EntryInfoFolderOpen() *EntryInfo

func EntryInfoFromGitTreeEntry added in v1.24.3

func EntryInfoFromGitTreeEntry(commit *git.Commit, fullPath string, gitEntry *git.TreeEntry) *EntryInfo

type MaterialIconProvider

type MaterialIconProvider struct {
	// contains filtered or unexported fields
}

func DefaultMaterialIconProvider

func DefaultMaterialIconProvider() *MaterialIconProvider

func (*MaterialIconProvider) EntryIconHTML added in v1.24.3

func (m *MaterialIconProvider) EntryIconHTML(p *RenderedIconPool, entry *EntryInfo) template.HTML

func (*MaterialIconProvider) FindIconName

func (m *MaterialIconProvider) FindIconName(entry *EntryInfo) string

type RenderedIconPool

type RenderedIconPool struct {
	IconSVGs map[string]template.HTML
}

func NewRenderedIconPool

func NewRenderedIconPool() *RenderedIconPool

func (*RenderedIconPool) RenderToHTML

func (p *RenderedIconPool) RenderToHTML() template.HTML

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL