diff options
Diffstat (limited to 'exports')
| -rw-r--r-- | exports/disco.go | 2 | ||||
| -rw-r--r-- | exports/exports.go | 5 | ||||
| -rw-r--r-- | exports/servers.go | 2 |
3 files changed, 4 insertions, 5 deletions
diff --git a/exports/disco.go b/exports/disco.go index bd5a663..56918ec 100644 --- a/exports/disco.go +++ b/exports/disco.go @@ -41,7 +41,7 @@ import "C" import ( "unsafe" - "github.com/jwijenbergh/eduvpn-common" + eduvpn "github.com/jwijenbergh/eduvpn-common" "github.com/jwijenbergh/eduvpn-common/internal/types" ) diff --git a/exports/exports.go b/exports/exports.go index 4f0b865..cd02bd1 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -14,11 +14,10 @@ import "C" import ( "encoding/json" - "errors" "fmt" "unsafe" - "github.com/jwijenbergh/eduvpn-common" + eduvpn "github.com/jwijenbergh/eduvpn-common" ) var P_StateCallbacks map[string]C.PythonCB @@ -79,7 +78,7 @@ func GetVPNState(name string) (*eduvpn.VPNState, error) { state, exists := VPNStates[name] if !exists || state == nil { - return nil, errors.New(fmt.Sprintf("State with name %s not found", name)) + return nil, fmt.Errorf("State with name %s not found", name) } return state, nil diff --git a/exports/servers.go b/exports/servers.go index 2dfb14b..b2ae0ee 100644 --- a/exports/servers.go +++ b/exports/servers.go @@ -51,7 +51,7 @@ import "C" import ( "unsafe" - "github.com/jwijenbergh/eduvpn-common" + eduvpn "github.com/jwijenbergh/eduvpn-common" "github.com/jwijenbergh/eduvpn-common/internal/server" ) |
