Documentation ¶
Index ¶
- func Blue(sentence string) string
- func ChangeLog(cl string, clear bool)
- func ClearTTY()
- func DecodeString(encodedstring string, privateKey string) string
- func EncodeString(string2encode string, privateKey string) string
- func GetBoolValFromPrompt(prompt string) bool
- func GetIntValFromPrompt(prompt string) int
- func GetPassword(prompt string) string
- func GetStringSliceFromPrompt(prompt string) []string
- func GetStringValFromPrompt(prompt string) string
- func GetTerminalSize() (int, int)
- func GetValueFromPrompt(prompt string) interface{}
- func Green(sentence string) string
- func Red(sentence string) string
- func ReverseString(s string) (result string)
- func SI(nombre interface{}) string
- func White(sentence string) string
- func Yellow(sentence string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeString ¶
func EncodeString ¶
Quick functions to encode and decode strings This is based on my encryption-decryption tool : https://github.com/jeanfrancoisgratton/encdec
func GetBoolValFromPrompt ¶
func GetIntValFromPrompt ¶
func GetPassword ¶
func GetStringValFromPrompt ¶
Getting typed values from prompt
func GetValueFromPrompt ¶
func GetValueFromPrompt(prompt string) interface{}
This one is more generic in the sense that it should be used whenever We cannot know before run-time what type of value should be expected
func ReverseString ¶
This function takes a string and returns its reverse Thus, "12345" becomes "54321"
func SI ¶
func SI(nombre interface{}) string
This function was originally written in 1993, in C, by my friend Jean-François Gauthier ([email protected]) I've ported it in C# in 2011. It still loosely based on J.F.Gauthier's version, somehow; credit is given where credit is due This function transforms a multi-digit number in International Notation; 1234567 thus becomes 1,234,567
Types ¶
This section is empty.