Skip to content

Commit

Permalink
Merge pull request #6 from bminer/master
Browse files Browse the repository at this point in the history
Update imports to dbus/v5
  • Loading branch information
mullerch authored Sep 26, 2019
2 parents 0f5ef75 + 73c139a commit 050d2c2
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 24 deletions.
2 changes: 1 addition & 1 deletion AccessPoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion ActiveConnection.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package gonetworkmanager

import (
"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion Checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion Connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion DHCP4Config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion DHCP6Config.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion Device.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion DeviceDummy.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion DeviceGeneric.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion DeviceIpTunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion DeviceStatistics.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion DeviceWired.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion DeviceWireless.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions IP4Config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down Expand Up @@ -315,4 +315,4 @@ func (c *ip4Config) MarshalJSON() ([]byte, error) {
"Nameservers": Nameservers,
"Domains": Domains,
})
}
}
2 changes: 1 addition & 1 deletion IP6Config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/json"
"errors"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion NetworkManager.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gonetworkmanager
import (
"encoding/json"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion Settings.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package gonetworkmanager

import (
"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ module github.com/Wifx/gonetworkmanager

go 1.12

require github.com/godbus/dbus v0.0.0-20181101234600-2ff6f7ffd60f

replace github.com/godbus/dbus => github.com/godbus/dbus/v5 v5.0.2
require github.com/godbus/dbus/v5 v5.0.2
3 changes: 1 addition & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
github.com/godbus/dbus v0.0.0-20181101234600-2ff6f7ffd60f h1:zlOR3rOlPAVvtfuxGKoghCmop5B0TRyu/ZieziZuGiM=
github.com/godbus/dbus v0.0.0-20181101234600-2ff6f7ffd60f/go.mod h1:/YcGZj5zSblfDWMMoOzV4fas9FZnQYTkDnsGvmh2Grw=
github.com/godbus/dbus/v5 v5.0.2 h1:QtWdZQyXTEn7S0LXv9nVxPUiT37d1i7UntpRTiKM86E=
github.com/godbus/dbus/v5 v5.0.2/go.mod h1:xhWf0FNVPg57R7Z0UbKHbJfkEywrmjJnf7w5xrFpKfA=
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"
"net"

"github.com/godbus/dbus"
"github.com/godbus/dbus/v5"
)

const (
Expand Down

0 comments on commit 050d2c2

Please sign in to comment.