From 2da03b735517a034a5b369550036c853a7dad819 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Wed, 23 Mar 2022 18:19:45 +0100 Subject: Run gofumpt --- src/server.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'src/server.go') diff --git a/src/server.go b/src/server.go index 1dc0f88..d512049 100644 --- a/src/server.go +++ b/src/server.go @@ -1,27 +1,27 @@ package eduvpn import ( - "errors" "encoding/json" + "errors" ) type Server struct { - BaseURL string `json:"base_url"` - Endpoints *ServerEndpoints `json:"endpoints"` - OAuth *OAuth `json:"oauth"` + BaseURL string `json:"base_url"` + Endpoints *ServerEndpoints `json:"endpoints"` + OAuth *OAuth `json:"oauth"` Profiles *ServerProfileInfo `json:"profiles"` } type ServerProfile struct { - ID string `json:"profile_id"` - DisplayName string `json:"display_name"` - VPNProtoList []string `json:"vpn_proto_list"` - DefaultGateway bool `json:"default_gateway"` + ID string `json:"profile_id"` + DisplayName string `json:"display_name"` + VPNProtoList []string `json:"vpn_proto_list"` + DefaultGateway bool `json:"default_gateway"` } type ServerProfileInfo struct { Current uint8 `json:"current_profile"` - Info struct { + Info struct { ProfileList []ServerProfile `json:"profile_list"` } `json:"info"` } -- cgit v1.2.3