An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

        

# Simple Icons Go
[![Maintainability](https://api.codeclimate.com/v1/badges/0f949ef474978655b7bf/maintainability)](https://codeclimate.com/github/mcred/simple-icons-go/maintainability)
[![Test Coverage](https://api.codeclimate.com/v1/badges/0f949ef474978655b7bf/test_coverage)](https://codeclimate.com/github/mcred/simple-icons-go/test_coverage)
![Unique Clones](https://img.shields.io/endpoint?url=https://6nxmsr2v39.execute-api.us-east-1.amazonaws.com/simple-icons-go)

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 main

import (
"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

```