robohash

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2025 License: MIT Imports: 14 Imported by: 0

README

Robo Hash

MIT License Go

This project is a port of Robohash to Go. Follow the steps below to install, build, and package the project.


Installation Guide

  1. Clone the Repository
  2. Build the Project
make all
cd build
tar -xvzf robohash.tar.gz


Usage

Construction Settings
Parameter Type Description
-input string Required. Input to be hashed
-set string 1 -> Robot
2 -> Monster
3 -> Robot2
4 -> Cat
5 -> Person
any
-color string Only for set1
[blue, brown, green, grey, orange, pink, purple, red, white, yellow]
-extension string File to be saved (datauri will not be saved to file)
[png, jpg, jpeg, gif, ppm, datauri]
-bgset string Adds a background
[1, 2, any]
-sizex int X size in px
-sizey int Y size in px

Hash Setting
Parameter Type Description
-ignoreExt none It will ignore image extensions, such as .png, .jpg, etc. When creating the hash
-slots int Number of slots the hash will be divided. Be careful with this option

any -> refers to random value



Examples



Attribution

This project uses images from Robohash.org. The images are created by:

  • Set 1: Robots by Zikri Kader
  • Set 2: Robots by Hrvoje Novakovic
  • Set 3: Robots by Julian Peter Arias
  • Set 4: Cats by David Revoy
  • Set 5: Avatars by Pablo Stanley

You are free to embed these images under the terms of the CC-BY License.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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