Skip to content

Package unifi: Implement Device.String().#10

Open
octo wants to merge 2 commits intomdlayher:masterfrom
octo:device-string
Open

Package unifi: Implement Device.String().#10
octo wants to merge 2 commits intomdlayher:masterfrom
octo:device-string

Conversation

@octo
Copy link
Copy Markdown

@octo octo commented Oct 15, 2018

Behaves like the Unifi UI, i.e. returns the device's name if set and the serial otherwise. If the serial has exactly 12 characters, it is formatted like a MAC address, again like the UI does.

@octo octo force-pushed the device-string branch 3 times, most recently from 255e23e to 6795ce6 Compare October 15, 2018 07:46
octo added 2 commits October 15, 2018 09:47
Previously, tests failed with:

$ go get github.com/golang/lint/golint
package github.com/golang/lint/golint: code in directory /home/travis/gopath/src/github.com/golang/lint/golint expects import "golang.org/x/lint/golint"
Behaves like the Unifi UI, i.e. returns the device's name if set and the
serial otherwise. If the serial has exactly 12 characters, it is
formatted like a MAC address, again like the UI does.
@octo
Copy link
Copy Markdown
Author

octo commented Oct 15, 2018

Hi, I've left the Travis fix in here for convenience. If you'd like this to be a separate PR, let me know. I've also ordered the commits for easy cherry-picking if that's helpful.

Best regards,
—octo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant