penticons

package module
v0.0.0-...-99cc558 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2018 License: MIT Imports: 3 Imported by: 0

README

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.

Documentation

Overview

Package penticons generates identicons similar to GitHub's contribution activity calendar

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64_string

func Base64_string(arg string) string

Returns Base64 encoded value of identicon's SVG string representation

func Generate

func Generate(arg string) string

Returns identicons's SVG string representation

func Uri_image

func Uri_image(arg string) string

Returns URI Image string for identicon

Types

This section is empty.

Directories

Path Synopsis
Package penticon deals with generating a penticon object
Package penticon deals with generating a penticon object
Package svg helps in working with SVG
Package svg helps in working with SVG
Package utils implements some utility functions
Package utils implements some utility functions

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL