diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-18 14:24:19 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-07-18 14:24:19 +0200 |
| commit | bda3d2784986e0a3fe2df78ec881332e81b54b3b (patch) | |
| tree | 86b36f9bc948a38550696e050e2795faaad53cdb /exports | |
| parent | b2cd79227d299476b5d7e28cb53434b8e919e15f (diff) | |
All: Run Gofumpt formatter
Diffstat (limited to 'exports')
| -rw-r--r-- | exports/exports.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/exports/exports.go b/exports/exports.go index 6341199..1e17587 100644 --- a/exports/exports.go +++ b/exports/exports.go @@ -14,8 +14,8 @@ void call_callback(PythonCB callback, const char *name, const char* oldstate, co import "C" import ( - "errors" "encoding/json" + "errors" "fmt" "unsafe" @@ -109,7 +109,7 @@ func CancelOAuth(name *C.char) *C.char { } type configJSON struct { - Config string `json:"config"` + Config string `json:"config"` ConfigType string `json:"config_type"` } @@ -205,7 +205,7 @@ func SetSecureLocation(name *C.char, data *C.char) *C.char { } //export GoBack -func GoBack(name *C.char) (*C.char) { +func GoBack(name *C.char) *C.char { nameStr := C.GoString(name) state, stateErr := GetVPNState(nameStr) if stateErr != nil { |
