utils

package
v1.0.45 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: Unlicense Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const SanitizedStringSizeLimit = 100

Variables

This section is empty.

Functions

func GenerateNewKeys

func GenerateNewKeys()

func GetFormattedTimeString

func GetFormattedTimeString() (result string)

func ParseConfig

func ParseConfig(file_path string) (result types.ConfigFile)

func PrettyPrint

func PrettyPrint(input interface{})

func PrintDevices

func PrintDevices(devices []Device)

func RemoveNonASCII

func RemoveNonASCII(input string) (result string)

func SanitizeInputString

func SanitizeInputString(input string) (result string)

func WriteJSON

func WriteJSON(filePath string, data interface{})

Types

type Device

type Device struct {
	Name      string
	VendorID  uint16
	ProductID uint16
	Serial    string
}

Jump to

Keyboard shortcuts

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