|
||
---|---|---|
.gitignore | ||
generate.go | ||
go.mod | ||
go.sum | ||
LICENSE | ||
octicon_generate.go | ||
octicon.go | ||
README.md |
octicon
https://octicons.github.com/
Credit to shurcooL for a lot of the groundwork for this library.
The original source of this library is his octicon library.
Installation
go get -u gitea.com/go-icon/octicon
Usage
icon := octicon.Alert()
// Get the raw XML
xml := icon.XML()
// Get something suitable to pass directly to an html/template
html := icon.HTML()
Build
go generate generate.go
New Versions
To update the version of octicons, simply change octiconVersion
in octicon_generate.go
and re-build.