u2ug: UUID to Ubisoft Game

Go

A Golang library that given a UUID (v1 or v4), will return the concatenation of a random adjective and Ubisoft game.

29b1f2fe-5e2c-48ab-8586-8acc953f694c → Curly Far Cry 3: Blood Dragon

Disclaimer

Highly inspired by https://github.com/CleverCloud/uuid_to_pokemon.rs, but in Go. Special thanks to the Clever Cloud teams 😉

It is an injective function, meaning that a given UUID will always produce the same name, but a given name could be the output of two different UUIDs.

It does should not matter since the original UUID must be kept as original source of uniqueness. This library is created in order to assign a reproducible human-readable name to a UUID.

How to use (library)

go get github.com/ncomet/u2ug/ubi

import "github.com/ncomet/u2ug/ubi"

game, err := ubi.Game("eae8aa0c-f1b3-4413-b140-b06dc1da3617")
if err != nil {
	panic(err)
}

fmt.Println(game) // "Sturdy Rayman 3: Hoodlum Havoc"

How to use (CLI)

$ go build .
$ u2ug eae8aa0c-f1b3-4413-b140-b06dc1da3617
Sturdy Rayman 3: Hoodlum Havoc

$ go run ./ eae8aa0c-f1b3-4413-b140-b06dc1da3617
Sturdy Rayman 3: Hoodlum Havoc

How to use (Docker)

$ docker build -t u2ug .
$ docker run u2ug eae8aa0c-f1b3-4413-b140-b06dc1da3617
Sturdy Rayman 3: Hoodlum Havoc

Some examples

Messy Rocksmith+

Busy Beyond Good & Evil HD

Easy The Smurfs 3D

Fussy Rayman Legends: Definitive Edition

Glassy Broken Sword: Shadow of the Templars – The Director’s Cut

Bashful Just Dance 2018

Good Tom Clancy’s Rainbow Six 3

Fluttering Top Trumps: Horror & Predators

Nimble Rayman 3: Hoodlum Havoc

Rich E.T. The Extra-Terrestrial: Interplanetary Mission

Silly Top Trumps: Dogs & Dinosaurs

Tricky Cover Girl

Difficult Monster Jam: Maximum Destruction

Joyful Tom Clancy’s Ghost Recon 2

Glowing Fighters Uncaged

Hardworking Street Racer

Cozy UFC: Throwdown

Clumsy Assassin’s Creed Pirates

Meek Just Dance 4

Simple Conflict Zone

Dreadful Anne McCaffrey’s Freedom: First Resistance

Long Trains & Trucks Tycoon

Brave Bomberman

Creepy Deep Fighter

Happy Rayman Raving Rabbids

Carefree Anno: Build an Empire

Loud Tom Clancy’s H.A.W.X 2

Spiky Shadowbane

Great Teenage Mutant Ninja Turtles: Smash-Up

Difficult My Japanese Coach

GitHub

View Github