An open API service indexing awesome lists of open source software.

https://github.com/ropes/whatsyourvectorvictor

NATO Alphabet Codes defined in Golang
https://github.com/ropes/whatsyourvectorvictor

alphabet golang nato

Last synced: about 1 month ago
JSON representation

NATO Alphabet Codes defined in Golang

Awesome Lists containing this project

README

          

# whatsyourvectorvictor
`import "github.com/ropes/whatsyourvectorvictor"`

* [Overview](#pkg-overview)
* [Index](#pkg-index)
* [Subdirectories](#pkg-subdirectories)

## Overview

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.

## Index
* [Variables](#pkg-variables)
* [func TranslateRune(c rune) string](#TranslateRune)

#### Package files
[consts.go](/src/github.com/ropes/whatsyourvectorvictor/consts.go) [doc.go](/src/github.com/ropes/whatsyourvectorvictor/doc.go) [translate.go](/src/github.com/ropes/whatsyourvectorvictor/translate.go)

## Variables
``` 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.

``` go
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.

``` go
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](/src/target/translate.go?s=126:159#L1)
``` go
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](http://godoc.org/github.com/davecheney/godoc2md)