Awesome Open Source
Awesome Open Source

penticons.go

An implementation of Penticons in go programming language.

Identicons similar to GitHub's contribution activity calendar.

GoDoc

package main

import (
	"fmt"
	"github.com/penticons/penticons-go"
)

func main() {
	arg := "Penticons"
	p := penticons.Uri_image(arg)
	fmt.Println(p)
}

Installation

⚠ Use the alias “penticons-go” to use Penticons in your Go code:

go get github.com/penticons/penticons-go

API

func Generate(arg string) string

Returns a SVG string representation of the penticon for the string argument arg

func Base64_string(arg string) string

Returns Base64 encoded string representation of the penticon for the string argument arg

func Uri_image(arg string) string

Returns URI image representatino of the penticon for the string argument arg

LICENSE

Penticons implementations are released under the MIT license.

Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Go (160,901
Github (43,910
String (42,272
Language (29,993
Programming (18,039
Icons (15,056
Calendar (9,873
Programming Language (5,930
Octicons (155