Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ITUEncoding = NewEncoding(morseITU, " ", "/")
ITUEncoding is the standard morse ITU encoding.
Functions ¶
func LooksLikeMorse ¶
LooksLikeMorse returns true if string seems to be a morse encoded string
Types ¶
type Encoding ¶ added in v1.0.3001
type Encoding struct {
// contains filtered or unexported fields
}
An Encoding is a radix 62 encoding/decoding scheme, defined by a 62-character alphabet.
func NewEncoding ¶ added in v1.0.3001
func (*Encoding) Decode ¶ added in v1.0.3001
Decode decodes morse code in `s` using `alphabet` mapping
func (*Encoding) DecodeString ¶ added in v1.0.3001
DecodeString returns the bytes represented by the base62 string s.
func (*Encoding) Encode ¶ added in v1.0.3001
Encode encodes clear text in `s` using `alphabet` mapping
func (*Encoding) EncodeToString ¶ added in v1.0.3001
EncodeToString returns the base62 encoding of src.
Click to show internal directories.
Click to hide internal directories.