How to get the serial Number of USB device with golang ?
Is there any example code ?
Anyone who know !
How to get the serial Number of USB device with golang ?
Is there any example code ?
Anyone who know !
You must use a wrapper of libusb in golang (an example is gousb). But this wrapper doesn't have the command in order to get the serial number. So you have to implement it. The command in libusb in order to do this is:
C.libusb_get_string_descriptor_ascii