morse

package
v1.0.2006 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(s string, alphabet map[string]string, letterSeparator, wordSeparator string) (string, error)

Decode decodes morse code in `s` using `alphabet` mapping

func DecodeITU

func DecodeITU(s string) (string, error)

DecodeITU translates international morse code (ITU) to text

func Encode

func Encode(s string, alphabet map[string]string, letterSeparator, wordSeparator string) string

Encode encodes clear text in `s` using `alphabet` mapping

func EncodeITU

func EncodeITU(s string) string

EncodeITU translates text to international morse code (ITU)

func LooksLikeMorse

func LooksLikeMorse(s string) bool

LooksLikeMorse returns true if string seems to be a morse encoded string

Types

This section is empty.

Jump to

Keyboard shortcuts

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