File-type icons from the Seti UI icon set (by Jesse Weed, MIT), as embedded SVG documents keyed by file name — for pure-Go UIs that render their own icons.
import seti "github.com/go-icons/seti"
svg := seti.Icon("paper.tex") // the Seti .tex glyph, as an SVG string
dir := seti.Folder() // the folder glyphIcon(filename) matches by exact base name first (go.mod, LICENSE,
.gitignore), then by extension, then falls back to a generic document. It is a
data package: it returns SVG strings and draws nothing. A renderer such as
go-widgets/toolkit's SVGIcon turns
the SVG into a drawn glyph.
A curated subset of the Seti icons is embedded (common source, markup, data and image types). Contributions adding more are welcome.
The Go code is BSD-3-Clause (LICENSE). The embedded Seti UI icon artwork is
MIT, © 2014 Jesse Weed (SETI-LICENSE.md) — redistributed unmodified.