Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.06 KB

README.md

File metadata and controls

55 lines (37 loc) · 1.06 KB

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.