diff --git a/example_test.go b/example_test.go index 96e9a59..ee2c3a1 100644 --- a/example_test.go +++ b/example_test.go @@ -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() diff --git a/go.mod b/go.mod index 9475087..53f73bc 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index 959c69b..9f4b242 100644 --- a/go.sum +++ b/go.sum @@ -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=