octicon/README.md
2019-12-04 22:48:35 +00:00

648 B

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.

License

MIT License