Documentation
¶
Index ¶
- Variables
- func Atbash(s string) (string, error)
- func Caesar(s string) (string, error)
- func ExportCommand() []*cobra.Command
- func Morse(s string, decode bool, sep ...string) (string, error)
- func Peigen(s string) (string, error)
- func Rot13(s string) (string, error)
- func Vigenere(src, key string, decode ...bool) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // MorseMap 摩斯电码对照表 MorseMap = 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': "--..", '0': "-----", '1': ".----", '2': "..---", '3': "...--", '4': "....-", '5': ".....", '6': "-....", '7': "--...", '8': "---..", '9': "----.", '.': ".-.-.-", ':': "---...", ',': "--..--", ';': "-.-.-.", '?': "..--..", '=': "-...-", '\'': ".----.", '/': "-..-.", '!': "-.-.--", '-': "-....-", '_': "..--.-", '"': ".-..-.", '(': "-.--.", ')': "-.--.-", '$': "...-..-", '&': ".-...", '@': ".--.-.", 0x01: "........", } )
Functions ¶
func ExportCommand ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.