From 8ccb4486cdb03cd3b10606b4bd77b7bcb4107e6d Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 20 Mar 2023 13:49:26 +0100 Subject: Format: Run gofumpt --- types/protocol/protocol.go | 2 +- types/types.go | 20 ++++++++++---------- 2 files changed, 11 insertions(+), 11 deletions(-) (limited to 'types') diff --git a/types/protocol/protocol.go b/types/protocol/protocol.go index d165105..6e003f7 100644 --- a/types/protocol/protocol.go +++ b/types/protocol/protocol.go @@ -12,7 +12,7 @@ const ( ) func New(p string) Protocol { - switch(p) { + switch p { case "openvpn": return OpenVPN case "wireguard": diff --git a/types/types.go b/types/types.go index 99b997e..4161108 100644 --- a/types/types.go +++ b/types/types.go @@ -70,17 +70,17 @@ type DiscoveryServer struct { } type Expiry struct { - StartTime int64 `json:"start_time"` - EndTime int64 `json:"end_time"` - ButtonTime int64 `json:"button_time"` - CountdownTime int64 `json:"countdown_time"` + StartTime int64 `json:"start_time"` + EndTime int64 `json:"end_time"` + ButtonTime int64 `json:"button_time"` + CountdownTime int64 `json:"countdown_time"` NotificationTimes []int64 `json:"notification_times"` } type Profile struct { - Identifier string `json:"identifier"` - DisplayName map[string]string `json:"display_name,omitempty"` - Protocols []protocol.Protocol `json:"supported_protocols"` + Identifier string `json:"identifier"` + DisplayName map[string]string `json:"display_name,omitempty"` + Protocols []protocol.Protocol `json:"supported_protocols"` } type Profiles struct { @@ -118,10 +118,10 @@ type ServerList struct { } type Configuration struct { - VPNConfig string `json:"config"` + VPNConfig string `json:"config"` Protocol protocol.Protocol `json:"protocol"` - DefaultGateway bool `json:"default_gateway"` - Tokens Tokens `json:"tokens"` + DefaultGateway bool `json:"default_gateway"` + Tokens Tokens `json:"tokens"` } type ServerType int8 -- cgit v1.2.3