summaryrefslogtreecommitdiff
path: root/exports
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-13 16:08:32 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-05-13 16:08:32 +0200
commit4d2f93fa46adc037f1237ebd35e3faafb4a7759a (patch)
tree5ae0c3aacf99a6c6be9d9f754bfa4d1eef584b97 /exports
parent5abf00ab87a55662eefc7716de52ead9749293c6 (diff)
Python + Go: Run formatter
Diffstat (limited to 'exports')
-rw-r--r--exports/exports.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/exports/exports.go b/exports/exports.go
index 287a4b6..2139254 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -12,13 +12,15 @@ void call_callback(PythonCB callback, const char* oldstate, const char* newstate
}
*/
import "C"
-import "errors"
-import "fmt"
-import "unsafe"
-import "github.com/jwijenbergh/eduvpn-common"
-var P_StateCallback C.PythonCB
+import (
+ "errors"
+ "fmt"
+ "unsafe"
+ "github.com/jwijenbergh/eduvpn-common"
+)
+var P_StateCallback C.PythonCB
var VPNStates map[string]*eduvpn.VPNState
@@ -35,7 +37,6 @@ func StateCallback(old_state string, new_state string, data string) {
C.free(unsafe.Pointer(data_c))
}
-
func GetVPNState(name string) (*eduvpn.VPNState, error) {
state, exists := VPNStates[name]
@@ -127,7 +128,6 @@ func GetOrganizationsList(name *C.char) (*C.char, *C.char) {
return C.CString(organizations), C.CString(ErrorToString(organizationsErr))
}
-
//export GetServersList
func GetServersList(name *C.char) (*C.char, *C.char) {
nameStr := C.GoString(name)