Skip to content

Ropes/whatsyourvectorvictor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

whatsyourvectorvictor

import "github.com/ropes/whatsyourvectorvictor"

WhatsYourVectorVictor

Simple package defining the NATO alphabet(and differing flavors) in Golang so they can be used for automated naming of processes, services, containers etc.

Circa 2017; may NATO live long and prosper.

Useful Consts:

Alphabet
  List of the phonetic alphabet, easy index reference.

consts.go doc.go translate.go

var Alphabet = []string{
    "alpha",
    "bravo",
    "charlie",
    "delta",
    "echo",
    "foxtrot",
    "golf",
    "hotel",
    "india",
    "juliet",
    "kilo",
    "lima",
    "mike",
    "november",
    "oscar",
    "papa",
    "quebec",
    "romeo",
    "sierra",
    "tango",
    "uniform",
    "victor",
    "whiskey",
    "xray",
    "yankee",
    "zulu",
}

Alphabet is the list of the NATO phonetic alphabet, easy index reference.

var Digits = map[int]string{
    0: "zero",
    1: "one",
    2: "two",
    3: "three",
    4: "four",
    5: "five",
    6: "six",
    7: "seven",
    8: "eight",
    9: "niner",
}

Digits translate ints to phonetic designations.

var USMCDigits = map[int]string{
    0: "zero",
    1: "won",
    2: "too",
    3: "tree",
    4: "foewer",
    5: "fife",
    6: "six",
    7: "seven",
    8: "ate",
    9: "niner",
}

USMCDigits are the USMC's extra flavor on phonetic number designations.

func TranslateRune(c rune) string

Translate rune returns the NATO code word for a given rune or empty string if not found.


Generated by godoc2md

About

NATO Alphabet Codes defined in Golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published