Replace anonymous DeviceDesc field import with a named "Desc" field.

This commit is contained in:
Sebastian Zagrodzki
2017-05-06 02:47:24 +02:00
parent 4991f9c89b
commit 9f04f7bdf0
6 changed files with 15 additions and 15 deletions

View File

@@ -34,7 +34,7 @@ import (
// of the given device.
//
// The given val must be one of the following:
// - *gousb.Descriptor "Product (Vendor)"
// - *gousb.DeviceDesc "Product (Vendor)"
func Describe(val interface{}) string {
switch val := val.(type) {
case *gousb.DeviceDesc:
@@ -53,7 +53,7 @@ func Describe(val interface{}) string {
// and protocol associated with a device or interface.
//
// The given val must be one of the following:
// - *gousb.Descriptor "Class (SubClass) Protocol"
// - *gousb.DeviceDesc "Class (SubClass) Protocol"
// - gousb.InterfaceSetup "IfClass (IfSubClass) IfProtocol"
func Classify(val interface{}) string {
var (