Go library for GitHub Octicons
Go to file
jolheiser 8b8d4464c9
Add title to SVGs
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2019-12-08 15:09:04 -06:00
.gitignore Add gitignore for GoLand 2019-12-04 12:50:50 -06:00
generate.go Initial release 2019-11-30 21:54:08 -06:00
go.mod Tidy 2019-12-04 20:23:35 -06:00
go.sum Tidy 2019-12-04 20:23:35 -06:00
LICENSE Initial release 2019-11-30 21:54:08 -06:00
octicon_generate.go Add title to SVGs 2019-12-08 15:09:04 -06:00
octicon.go Add title to SVGs 2019-12-08 15:09:04 -06:00
README.md Fix line-break 2019-12-04 22:48:35 +00:00

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