Skip to content

Commit

Permalink
use b1ug/gid v0.0.1 for cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
vt128 committed Oct 24, 2023
1 parent 60a3595 commit d789671
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions example_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import (
b1 "github.com/b1ug/blink1-go"
)

// This example checks if the current OS is supported by the underlying HID library.
func ExampleIsRunningOnSupportedOS() {
fmt.Println(b1.IsRunningOnSupportedOS())
}

// This example shows how to run test command on the blink(1) device.
func ExampleDevice_Test() {
d, err := b1.OpenNextDevice()
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module github.com/b1ug/blink1-go

go 1.13

require github.com/b1ug/gid v0.0.0-20231001163456-b48caa2e0938
require github.com/b1ug/gid v0.0.1
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
github.com/b1ug/gid v0.0.0-20231001163456-b48caa2e0938 h1:dmFHzMC2u+deomG4XrgjE6sKycNAtWKUHSRrnrTEzZM=
github.com/b1ug/gid v0.0.0-20231001163456-b48caa2e0938/go.mod h1:b9pd+IB3F4qVXRRUOWgux7TWqxceIEGo/mhoBcOp9RM=
github.com/b1ug/gid v0.0.1 h1:YP87QnRv7MBfC9PrbbN9u/obK401AM+nuXjpP3WayzM=
github.com/b1ug/gid v0.0.1/go.mod h1:b9pd+IB3F4qVXRRUOWgux7TWqxceIEGo/mhoBcOp9RM=

0 comments on commit d789671

Please sign in to comment.