Skip to content

ID generator that creates a gfycat style random ID

License

Notifications You must be signed in to change notification settings

ilsiepotamus/gfycatid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gfycatid

This is a quick and dirty random id generator that uses gfycats method of generating human readable IDs in the form AdjectiveAdjectiveAnimal.

Requirements

gfycatid requires Golang version 1.5 or greater.

Installation

$ go get github.com/ilsiepotamus/gfycatid

Example

package main

import (
	"fmt"
	"github.com/ilsiepotamus/gfycatid"
)

func main() {
	// Update the static assets with anything new that gfycat might have made public
	err := gfycatid.UpdateAssets()
	if err != nil {
		fmt.Println("Assets could not be updated.  Using the static assets.")
	}

	// Create a new ID
	id := gfycatid.New()
	fmt.Println("gfycat ID is: ", id)
}

About

ID generator that creates a gfycat style random ID

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages