An implementation of Penticons in go programming language.
Identicons similar to GitHub's contribution activity calendar.
package main
import (
"fmt"
"github.com/penticons/penticons-go"
)
func main() {
arg := "Penticons"
p := penticons.Uri_image(arg)
fmt.Println(p)
}
⚠ Use the alias “penticons-go” to use Penticons in your Go code:
go get github.com/penticons/penticons-go
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
Penticons implementations are released under the MIT license.