https://github.com/mcred/simple-icons-go
go wrapper for simple-icons
https://github.com/mcred/simple-icons-go
go icons simple-icons svg svg-icons svgs
Last synced: 5 months ago
JSON representation
go wrapper for simple-icons
- Host: GitHub
- URL: https://github.com/mcred/simple-icons-go
- Owner: mcred
- License: mit
- Created: 2022-03-19T21:10:19.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-11-17T06:11:34.000Z (6 months ago)
- Last Synced: 2024-11-17T07:23:07.528Z (6 months ago)
- Topics: go, icons, simple-icons, svg, svg-icons, svgs
- Language: JavaScript
- Homepage:
- Size: 2.96 MB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple Icons Go
[](https://codeclimate.com/github/mcred/simple-icons-go/maintainability)
[](https://codeclimate.com/github/mcred/simple-icons-go/test_coverage)
Go wrapper for the [simple-icons](https://github.com/simple-icons/simple-icons) repo. Browse icons on their [website](https://simpleicons.org/)
# Installation
```shell
go get github.com/mcred/simple-icons-go
```# Example
```go
package mainimport (
"fmt"
"github.com/mcred/simple-icons-go"
)func main() {
icons,err := simple_icons_go.Load()
if err != nil {
panic(err)
}
icon, err := icons.Get("liquibase")
if err != nil {
panic(err)
}
fmt.Println(fmt.Printf("%#v", icon))
}
```
```
simple_icons_go.Icon{
Title:"Liquibase",
Slug:"liquibase",
Hex:"2962FF",
Source:"https://www.liquibase.com/brand",
Svg:"Liquibase",
Guidelines:"https://www.liquibase.com/brand",
License:simple_icons_go.License{
Type:"",
Url:""
}
}1136```