GOvatar is an avatar generator writen in GO
To install the library and command line program, use the following:
$ go get -u github.com/o1egl/govatar/...
Binary packages are available for Mac, Linux and Windows.
$ govatar generate male -o avatar.png # Generates random avatar.png for male
$ govatar generate female -o avatar.png # Generates random avatar.png for female
$ govatar -h # Display help message
Generates avatar and save it to file
govatar.GenerateFile(govatar.MALE, "/path/to/file")
Generates avatar and return it as image.Image
img, err := govatar.Generate(govatar.MALE)
- Add new skins to data/background, male/clothes, female/hair and etc...
- Run
$ go-bindata -nomemcopy -pkg govatar data/...
for building embedded assets. - Submit pull request :)
- Fork it.
- Create a branch (
git checkout -b my_branch
) - Commit your changes (
git commit -am "Added new awesome avatars"
) - Push to the branch (
git push origin my_branch
) - Open a Pull Request
- Enjoy a refreshing Diet Coke and wait
GOvatar is released under the MIT license. See LICENSE