Change package name
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package mbtcpclient
|
||||
package modbustcpclient
|
||||
|
||||
import (
|
||||
"encoding/binary"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package mbtcpclient
|
||||
package modbustcpclient
|
||||
|
||||
import (
|
||||
"testing"
|
||||
@@ -22,7 +22,7 @@ func TestReadOneRegister(t *testing.T) {
|
||||
res, err = c.ReadRegisters(12544, 1)
|
||||
assert.NoError(t, err)
|
||||
assert.Len(t, res, 1)
|
||||
t.Log( float32(res[0])/10)
|
||||
t.Log(float32(res[0]) / 10)
|
||||
|
||||
res, err = c.ReadRegisters(12136, 1)
|
||||
assert.NoError(t, err)
|
||||
|
||||
2
go.mod
2
go.mod
@@ -1,4 +1,4 @@
|
||||
module mbtcpclient
|
||||
module git.solver.nu/henrik/modbustcpclient
|
||||
|
||||
go 1.15
|
||||
|
||||
|
||||
1
go.sum
1
go.sum
@@ -5,6 +5,7 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/testify v1.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
|
||||
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
|
||||
Reference in New Issue
Block a user