Go library for Font-Awesome 5 Free icons
Go to file
jolheiser 316c47069c
Fix icon names
Signed-off-by: jolheiser <john.olheiser@gmail.com>
2019-12-08 20:16:45 -06:00
.gitignore Initial commit 2019-12-04 12:54:44 -06:00
fontawesome_generate.go Fix icon names 2019-12-08 20:16:45 -06:00
fontawesome.go Fix icon names 2019-12-08 20:16:45 -06:00
generate.go Initial commit 2019-12-04 12:54:44 -06:00
go.mod Tidy 2019-12-04 20:23:01 -06:00
go.sum Tidy 2019-12-04 20:23:01 -06:00
LICENSE Initial commit 2019-12-04 12:54:44 -06:00
LICENSE.txt Initial commit 2019-12-04 12:54:44 -06:00
README.md Add site to README 2019-12-04 22:47:37 +00:00

fontawesome

https://fontawesome.com/icons

Installation

go get -u gitea.com/go-icon/fontawesome

Usage

icon := fontawesome.Fa500pxBrands()

// 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 fontawesome, simply change faVersion in fontawesome_generate.go and re-build.

License

FA License (icons) MIT License (library code)