prutils

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

README

prutils for GoLang

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IsAbsolute = true

IsAbsolute is used to set position of cmd in windows.

Functions

func BoolInputValidator

func BoolInputValidator(msg string, storage *bool)

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

func IntInputValidator(msg string, storage *int, lowerLimit int, upperLimit int)

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

func RandomInRange(upper, lower int) int

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL