* Implement `Stringer` interface for `DeviceState` If device adoption fails the error message isn't very readable at the moment. ``` Error: unexpected state '10', wanted target '2'. ``` * Use `stringer`
7 lines
78 B
Go
7 lines
78 B
Go
// +build tools
|
|
|
|
package main
|
|
|
|
import (
|
|
_ "golang.org/x/tools/cmd/stringer"
|
|
) |