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
- Host: GitHub
- URL: https://github.com/ropes/whatsyourvectorvictor
- Owner: Ropes
- License: apache-2.0
- Created: 2016-10-28T06:38:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-04-01T04:21:26.000Z (about 5 years ago)
- Last Synced: 2025-07-03T11:04:41.738Z (12 months ago)
- Topics: alphabet, golang, nato
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)