Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEFAULT_USER = "" DEFAULT_USER_PASSWORD = "" )
View Source
const ASYM_EXAMPLE_DATA string = "0123456789abcdef"
View Source
const SIGN_EXAMPLE_DATA string = "0123456789abcdef"
View Source
const SYM_EXAMPLE_DATA string = "0123456789ABCDEF"
Variables ¶
This section is empty.
Functions ¶
func StrPad ¶
StrPad returns the input string padded on the left, right or both sides using padType to the specified padding length padLength.
This helper function is from internet: https://gist.github.com/asessa/3aaec43d93044fc42b7c6d5f728cb039
Example:
input := "Codes";
StrPad(input, 10, " ", "RIGHT") // produces "Codes "
StrPad(input, 10, "-=", "LEFT") // produces "=-=-=Codes"
StrPad(input, 10, "_", "BOTH") // produces "__Codes___"
StrPad(input, 6, "___", "RIGHT") // produces "Codes_"
StrPad(input, 3, "*", "RIGHT") // produces "Codes"
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.