All Projects → Atrox → haikunatorgo

Atrox / haikunatorgo

Licence: BSD-3-Clause license
Generate Heroku-like random names to use in your go applications.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to haikunatorgo

haikunatorjava
Generate Heroku-like random names to use in your Java applications
Stars: ✭ 27 (-46%)
Mutual labels:  heroku, haikunator
haikunatorphp
Generate Heroku-like random names to use in your php applications.
Stars: ✭ 99 (+98%)
Mutual labels:  heroku, haikunator
heroku-cli-deploy
No description or website provided.
Stars: ✭ 23 (-54%)
Mutual labels:  heroku
kodepos
📮 Indonesian postal code search API by place name, village or city.
Stars: ✭ 32 (-36%)
Mutual labels:  heroku
django social login tutorial
Django Social Login Tutorial
Stars: ✭ 65 (+30%)
Mutual labels:  heroku
Feedback-bot
In Short This is An Personalized Livegram Bot Made Using Python.. Follow Me @HeimanPictures & Star This Repo
Stars: ✭ 23 (-54%)
Mutual labels:  heroku
meta pinger
a Heroku-hosted Rails app that pings Heroku apps (including itself) at 10 minute intervals to keep the servers from idling :)
Stars: ✭ 50 (+0%)
Mutual labels:  heroku
img ai app boilerplate
An image classification app boilerplate to serve your deep learning models asap!
Stars: ✭ 27 (-46%)
Mutual labels:  heroku
libDrive
libDrive is a Google Drive media library manager and indexer, similar to Plex, that organizes Google Drive media to offer an intuitive and user-friendly experience.
Stars: ✭ 14 (-72%)
Mutual labels:  heroku
demo-laravel-crud
My practice for basic CRUD of Laravel5 on Heroku.
Stars: ✭ 22 (-56%)
Mutual labels:  heroku
Web-Development-Path-And-Resources
Will Add a path and some resources in this repo for web D for my first year students
Stars: ✭ 46 (-8%)
Mutual labels:  heroku
iam
💚 Introduction Bot for slack teams:
Stars: ✭ 12 (-76%)
Mutual labels:  heroku
events-manager-io
A basic site for managing event centers and scheduling events.
Stars: ✭ 19 (-62%)
Mutual labels:  heroku
nazar
Electronic component detection, identification and recognition system in realtime from camera image using react-native and tensorflow for classification along with Clarifai API with option to search the component details from web with description shown from Octopart fetched from server
Stars: ✭ 25 (-50%)
Mutual labels:  heroku
Meteor-Files-Demos
Demos for ostrio:files package
Stars: ✭ 51 (+2%)
Mutual labels:  heroku
IPL-ML-2018
Predicting IPL match results. https://kuharan.github.io/IPL-ML-2018/
Stars: ✭ 14 (-72%)
Mutual labels:  heroku
heroku-nextjs-custom-server-express
Deploy Next.js server-side React apps using a custom Express server to Heroku
Stars: ✭ 91 (+82%)
Mutual labels:  heroku
heroku-postico
Heroku Postgres connection tool for Postico
Stars: ✭ 37 (-26%)
Mutual labels:  heroku
Chatbot
A Deep-Learning multi-purpose chatbot made using Python3
Stars: ✭ 36 (-28%)
Mutual labels:  heroku
GitHub-Education-Portfolio
A portfolio made using React and tools from GitHub Student Developer Pack
Stars: ✭ 50 (+0%)
Mutual labels:  heroku

HaikunatorGO

Build Status Coverage Status Go Report Card GoDoc

Generate Heroku-like random names to use in your go applications.

Installation

go get github.com/atrox/haikunatorgo/v2

Usage

Haikunator is pretty simple.

package main

import (
  haikunator "github.com/atrox/haikunatorgo/v2"
)

func main() {
  haikunator := haikunator.New()

  // default usage
  haikunator.Haikunate() // => "wispy-dust-1337"

  // custom length (default=4)
  haikunator.TokenLength = 9
  haikunator.Haikunate() // => "patient-king-887265"

  // use hex instead of numbers
  haikunator.TokenHex = true
  haikunator.Haikunate() // => "purple-breeze-98e1"

  // use custom chars instead of numbers/hex
  haikunator.TokenChars = "HAIKUNATE"
  haikunator.Haikunate() // => "summer-atom-IHEA"

  // don't include a token
  haikunator.TokenLength = 0
  haikunator.Haikunate() // => "cold-wildflower"

  // use a different delimiter
  haikunator.Delimiter = "."
  haikunator.Haikunate() // => "restless.sea.7976"

  // no token, space delimiter
  haikunator.TokenLength = 0
  haikunator.Delimiter = " "
  haikunator.Haikunate() // => "delicate haze"

  // no token, empty delimiter
  haikunator.TokenLength = 0
  haikunator.Delimiter = ""
  haikunator.Haikunate() // => "billowingleaf"

  // custom nouns and/or adjectives
  haikunator.Adjectives = []string{"red", "green", "blue"}
  haikunator.Nouns = []string{"reindeer"}
  haikunator.Haikunate() // => "blue-reindeer-4252"
}

Options

The following options are available:

Haikunator{
  Adjectives:  []string{"custom", "adjectives"},
  Nouns:       []string{"custom", "nouns"},
  Delimiter:   "-",
  TokenLength: 4,
  TokenHex:    false,
  TokenChars:  "0123456789",
  Random:      rand.New(rand.NewSource(time.Now().UnixNano())),
}

If TokenHex is true, it overrides any tokens specified in TokenChars

Contributing

Everyone is encouraged to help improve this project. Here are a few ways you can help:

Other Languages

Haikunator is also available in other languages. Check them out:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].