fileicon

package
v3.1.23 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicEntryIconHTML

func BasicEntryIconHTML(entry *EntryInfo) template.HTML

func BasicEntryIconName

func BasicEntryIconName(entry *EntryInfo) string

func RenderEntryIconHTML

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

Types

type EntryInfo

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

func EntryInfoFolder

func EntryInfoFolder() *EntryInfo

func EntryInfoFolderOpen

func EntryInfoFolderOpen() *EntryInfo

func EntryInfoFromGitTreeEntry

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

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

Source Files

  • basic.go
  • entry.go
  • material.go
  • render.go

Jump to

Keyboard shortcuts

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