avatar

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Avatar

type Avatar struct {
	Size  int    `json:"size"`
	Parts []Part `json:"parts"`
}

type Avatars

type Avatars map[string]*Avatar

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator instance

func NewGenerator

func NewGenerator(dir, defaultSet string) (*Generator, error)

NewServer creates new server instance

func (*Generator) Generate

func (g *Generator) Generate(seed, set string) (*bytes.Buffer, error)

Generate avatar

type Part

type Part struct {
	Name string `json:"name"`
	Nb   int    `json:"nb"`
}

Jump to

Keyboard shortcuts

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