Skip to content

About

An implementation of Penticons in go programming language

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

An implementation of Penticons in go programming language

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages