morse

package
v0.0.0-...-4964808 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LangEnglish = "EN"
	LangKorean  = "KR"
)

Variables

View Source
var EnglishRuneToMorseMap = map[rune]string{
	'a': ".-",
	'b': "-...",
	'c': "-.-.",
	'd': "-..",
	'e': ".",
	'f': "..-.",
	'g': "--.",
	'h': "....",
	'i': "..",
	'j': ".---",
	'k': "-.-",
	'l': ".-..",
	'm': "--",
	'n': "-.",
	'o': "---",
	'p': ".--.",
	'q': "--.-",
	'r': ".-.",
	's': "...",
	't': "-",
	'u': "..-",
	'v': "...-",
	'w': ".--",
	'x': "-..-",
	'y': "-.--",
	'z': "--..",
	'1': ".----",
	'2': "..---",
	'3': "...--",
	'4': "....-",
	'5': ".....",
	'6': "-....",
	'7': "--...",
	'8': "---..",
	'9': "----.",
	'0': "-----",
	'?': "..--..",
	'!': "-.-.--",
	'.': ".-.-.-",
	',': "--..--",
	';': "-.-.-.",
	':': "---...",
	'+': ".-.-.",
	'-': "-....-",
	'/': "-..-.",
	'=': "-...-",
}

Functions

func FromMorseCode

func FromMorseCode(text string, lang string) string

func ToMorseCode

func ToMorseCode(text string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL