utils.go 222 B

123456789
  1. package main
  2. import (
  3. "strconv"
  4. )
  5. func genDeviceIdentifier(vendor int32, product uint, device string) string {
  6. return strconv.FormatInt(int64(vendor), 16) + "-" + strconv.FormatInt(int64(product), 16) + "-" + device
  7. }