Skip to content

Commit

Permalink
merge #16 :: module refactoring to support go modules
Browse files Browse the repository at this point in the history
* Migrate to go module.

Vendoring is deprecated since the release of Go modules.
See https://blog.golang.org/modules2019
  • Loading branch information
creekorful authored Nov 12, 2020
1 parent 1f746af commit 1f8eb2f
Show file tree
Hide file tree
Showing 306 changed files with 29 additions and 157,214 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ _testmain.go
*.exe
*.test
*.prof

.idea/
2 changes: 1 addition & 1 deletion cmd/wol/alias_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func (suite *AliasDBTests) TestAddAlias() {
// Add the alias to the db.
err := suite.aliases.Add(entry.alias, entry.mac, entry.iface)
assert.Nil(suite.T(), err)
entryCount += 1
entryCount++

// Validate that we have "entryCount" number of aliases added.
list, err := suite.aliases.List()
Expand Down
3 changes: 1 addition & 2 deletions cmd/wol/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,9 @@ package main

import (
"fmt"
"github.com/sabhiram/go-wol/wol"

"github.com/sabhiram/go-colorize"

wol "github.com/sabhiram/go-wol"
)

////////////////////////////////////////////////////////////////////////////////
Expand Down
3 changes: 1 addition & 2 deletions cmd/wol/wol.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,14 @@ package main
import (
"errors"
"fmt"
"github.com/sabhiram/go-wol/wol"
"net"
"os"
"os/user"
"path"
"strings"

flags "github.com/jessevdk/go-flags"

wol "github.com/sabhiram/go-wol"
)

////////////////////////////////////////////////////////////////////////////////
Expand Down
11 changes: 11 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module github.com/sabhiram/go-wol

go 1.14

require (
github.com/coreos/bbolt v1.3.1-coreos.6.0.20180223184059-4f5275f4ebbf
github.com/jessevdk/go-flags v0.0.0-20150816100521-1acbbaff2f34
github.com/sabhiram/go-colorize v0.0.0-20150812051142-e1128a35ae9b
github.com/stretchr/testify v0.0.0-20150929183540-2b15294402a8
golang.org/x/sys v0.0.0-20200413165638-669c56c373c4 // indirect
)
12 changes: 12 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
github.com/coreos/bbolt v1.3.1-coreos.6.0.20180223184059-4f5275f4ebbf h1:CmPJznEcWS7opZI1p2IXCRPDxE/6o4YFBv4HYb7VsH4=
github.com/coreos/bbolt v1.3.1-coreos.6.0.20180223184059-4f5275f4ebbf/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
github.com/jessevdk/go-flags v0.0.0-20150816100521-1acbbaff2f34 h1:OsL9UGMqb35j8AxF7EK7UGEK58a4YAWo7DYtJIufuh0=
github.com/jessevdk/go-flags v0.0.0-20150816100521-1acbbaff2f34/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
github.com/sabhiram/go-colorize v0.0.0-20150812051142-e1128a35ae9b h1:q2Rsn7fYW1+mjMx/5fINq2XH8G+shGC+TOr4EpYopcw=
github.com/sabhiram/go-colorize v0.0.0-20150812051142-e1128a35ae9b/go.mod h1:NBc8PFqgx69aTvU7D/y7UHkciTYgWvn50NM0RvpjS4M=
github.com/stretchr/testify v0.0.0-20150929183540-2b15294402a8 h1:ryzplALtTWkUnRgVkNSsChh81lD3UeYMJ22gPVK/8N0=
github.com/stretchr/testify v0.0.0-20150929183540-2b15294402a8/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
golang.org/x/sys v0.0.0-20180202135801-37707fdb30a5 h1:MF92a0wJ3gzSUVBpjcwdrDr5+klMFRNEEu6Mev4n00I=
golang.org/x/sys v0.0.0-20180202135801-37707fdb30a5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20200413165638-669c56c373c4 h1:opSr2sbRXk5X5/givKrrKj9HXxFpW2sdCiP8MJSKLQY=
golang.org/x/sys v0.0.0-20200413165638-669c56c373c4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
20 changes: 0 additions & 20 deletions vendor/github.com/coreos/bbolt/LICENSE

This file was deleted.

30 changes: 0 additions & 30 deletions vendor/github.com/coreos/bbolt/Makefile

This file was deleted.

Loading

0 comments on commit 1f8eb2f

Please sign in to comment.