Skip to content

penticons/penticons.go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.