Ropes / whatsyourvectorvictor

NATO Alphabet Codes defined in Golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

whatsyourvectorvictor

import "github.com/ropes/whatsyourvectorvictor"

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

Package files

consts.go doc.go translate.go

Variables

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

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

License:Apache License 2.0


Languages

Language:Go 73.4%Language:Rust 26.6%