Golang port of DiceBear Avatars
Go to file
6543 425849f4f8
Update Docs
2021-02-02 02:43:59 +01:00
example split library & example 2021-02-02 02:43:02 +01:00
.gitignore Update Docs 2021-02-02 02:43:59 +01:00
README.md Update Docs 2021-02-02 02:43:59 +01:00
avatars.go split library & example 2021-02-02 02:43:02 +01:00
go.mod init go.mod 2021-02-02 02:05:04 +01:00

README.md

Golang port of DiceBear Avatars, which in turn were inspired by 8biticon avatars

Usage

import codeberg.org/Codeberg/avatars

and use string svg = avatars.MakeAvatar(seed)

Build & Use Example

# will build the binary
go build -o avatars example/main.go
# Create a random avatar and write it to /tmp/avatar.svg
./avatars my-special-seed-string > /tmp/avatar.svg
# Open SVG file with default image viewer
xdg-open /tmp/avatar.svg