Files
go-unifi/tools.go
Joshua Spence ff2854e943 Implement Stringer interface for DeviceState (#49)
* 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`
2021-09-24 13:55:12 +10:00

7 lines
78 B
Go

// +build tools
package main
import (
_ "golang.org/x/tools/cmd/stringer"
)