list

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSerialList added in v0.2.0

func GetSerialList() ([]string, error)

func IdentifyDevice

func IdentifyDevice(vid, pid string) string

func RenderTable added in v0.2.0

func RenderTable(portList []PortInfo, showNames bool, showAll bool)

Types

type PortInfo

type PortInfo struct {
	Name         string
	IsUSB        bool
	VID          string
	PID          string
	SerialNumber string
	ProductName  string
}

func GetSerialListDetailed added in v0.2.0

func GetSerialListDetailed() ([]PortInfo, error)

func PortDetailstoPortInfo

func PortDetailstoPortInfo(pList []*enumerator.PortDetails) []PortInfo

Jump to

Keyboard shortcuts

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