Documentation
¶
Index ¶
- Variables
- func BoolInputValidator(msg string, storage *bool)
- func ClipboardCheck()
- func IntInputValidator(msg string, storage *int, lowerLimit int, upperLimit int)
- func KeyboardCheck() *keyboard.KeyBonding
- func PrintConsoleTitle(title string)
- func RandomInRange(upper, lower int) int
- func SetConsoleRect(width, height int16)
Constants ¶
This section is empty.
Variables ¶
var IsAbsolute = true
IsAbsolute is used to set position of cmd in windows.
Functions ¶
func BoolInputValidator ¶
BoolInputValidator prints msg, reads 0 or 1, and stores the corresponding bool value in storage. Loops until valid input.
func ClipboardCheck ¶
func ClipboardCheck()
ClipboardCheck tests if the program is capable of clipboard read and write.
func IntInputValidator ¶
IntInputValidator prints msg, reads an int into storage, and validates that the value is within [lowerLimit, upperLimit]. Loops until valid input.
func KeyboardCheck ¶
func KeyboardCheck() *keyboard.KeyBonding
KeyboardCheck initializes a new keyboard.KeyBonding and returns a pointer to it.
func PrintConsoleTitle ¶
func PrintConsoleTitle(title string)
PrintConsoleTitle sets the console title of the application.
func RandomInRange ¶
RandomInRange returns a random int in the range [lower, upper] (both inclusive). Since Go 1.20, the global random source is automatically seeded; no manual seeding is required.
func SetConsoleRect ¶
func SetConsoleRect(width, height int16)
SetConsoleRect changes the width and height of the current console window.
Types ¶
This section is empty.