Documentation ¶
Index ¶
- Constants
- func GeneralOptionsCompleter(d prompt.Document) []prompt.Suggest
- func GeneralOptionsMenu(p *Parameters)
- func GetCharScore(data string) int
- func GetLetterPositionLower(data rune) int
- func GetLetterPositionUpper(data rune) int
- func Hamming(data1, data2 string) int
- func MainMenu(p *Parameters)
- func MainMenuCompleter(d prompt.Document) []prompt.Suggest
- func SetLetterByPositionLower(data int) rune
- func SetLetterByPositionUpper(data int) rune
- func TotalScore(data string) int
- type Parameters
- type ResultsStringSlice
Constants ¶
const ( UPPER = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" LOWER = "abcdefghijklmnopqrstuvwxyz" )
Variables ¶
This section is empty.
Functions ¶
func GeneralOptionsCompleter ¶
func GeneralOptionsCompleter(d prompt.Document) []prompt.Suggest
func GeneralOptionsMenu ¶
func GeneralOptionsMenu(p *Parameters)
func GetCharScore ¶
GetCharScore function to determine "score" of individual characters in potentially decoded message
func GetLetterPositionLower ¶
GetLetterPositionLower function determines a given rune's numeric position in the alphabet, lower case version
func GetLetterPositionUpper ¶
GetLetterPositionUpper determines a given rune's numeric position in the alphabet, upper case version
func MainMenu ¶
func MainMenu(p *Parameters)
func MainMenuCompleter ¶
func MainMenuCompleter(d prompt.Document) []prompt.Suggest
func SetLetterByPositionLower ¶
SetLetterByPositionLower function returns the letter represented by a numeric position in the alphabet, lower case version
func SetLetterByPositionUpper ¶
SetLetterByPositionLower function returns the letter represented by a numeric position in the alphabet, upper case version
func TotalScore ¶
TotalScore function determines total "score" of given string
Types ¶
type Parameters ¶
Parameters type to store/parse parameters used
func (Parameters) String ¶
func (p Parameters) String() string
type ResultsStringSlice ¶
type ResultsStringSlice []string
ResultsStringSlice type used to simplify information output via STDOUT or specified file
func (ResultsStringSlice) WriteOutput ¶
func (r ResultsStringSlice) WriteOutput(outputFile string)
WriteOutput function for the ResultsStringSlice type to simplify information output