summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-13 13:44:07 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-10-13 13:44:07 +0200
commitbadac4c8dec6be7a798e891281221f7830305c88 (patch)
treea786fbd59cf9eab7ac8389ced8954859cc433fc4 /internal
parentadf59e8c6cdaf050ef9cf09301111e7429ec0c37 (diff)
Format: Run gofumpt
Diffstat (limited to 'internal')
-rw-r--r--internal/config/config.go6
-rw-r--r--internal/discovery/discovery.go2
-rw-r--r--internal/http/http.go2
-rw-r--r--internal/log/log.go5
-rw-r--r--internal/oauth/oauth.go4
-rw-r--r--internal/server/custom.go1
-rw-r--r--internal/verify/verify.go2
7 files changed, 11 insertions, 11 deletions
diff --git a/internal/config/config.go b/internal/config/config.go
index ec9afa2..1d5a201 100644
--- a/internal/config/config.go
+++ b/internal/config/config.go
@@ -6,18 +6,18 @@ import (
"io/ioutil"
"path"
- "github.com/eduvpn/eduvpn-common/types"
"github.com/eduvpn/eduvpn-common/internal/util"
+ "github.com/eduvpn/eduvpn-common/types"
)
type Config struct {
Directory string
- Name string
+ Name string
}
func (config *Config) Init(directory string, name string) {
config.Directory = directory
- config.Name = name
+ config.Name = name
}
func (config *Config) GetFilename() string {
diff --git a/internal/discovery/discovery.go b/internal/discovery/discovery.go
index e7270ea..1156dd0 100644
--- a/internal/discovery/discovery.go
+++ b/internal/discovery/discovery.go
@@ -6,9 +6,9 @@ import (
"time"
"github.com/eduvpn/eduvpn-common/internal/http"
- "github.com/eduvpn/eduvpn-common/types"
"github.com/eduvpn/eduvpn-common/internal/util"
"github.com/eduvpn/eduvpn-common/internal/verify"
+ "github.com/eduvpn/eduvpn-common/types"
)
type Discovery struct {
diff --git a/internal/http/http.go b/internal/http/http.go
index 15e2a17..02d83a6 100644
--- a/internal/http/http.go
+++ b/internal/http/http.go
@@ -157,7 +157,7 @@ func HTTPMethodWithOpts(
type HTTPStatusError struct {
URL string
- Body string
+ Body string
Status int
}
diff --git a/internal/log/log.go b/internal/log/log.go
index 7241164..970480f 100644
--- a/internal/log/log.go
+++ b/internal/log/log.go
@@ -6,8 +6,8 @@ import (
"os"
"path"
- "github.com/eduvpn/eduvpn-common/types"
"github.com/eduvpn/eduvpn-common/internal/util"
+ "github.com/eduvpn/eduvpn-common/types"
)
type FileLogger struct {
@@ -71,7 +71,7 @@ func (logger *FileLogger) Init(level LogLevel, name string, directory string) er
func (logger *FileLogger) Inherit(err error, msg string) {
level := types.GetErrorLevel(err)
- switch(level) {
+ switch level {
case types.ERR_INFO:
logger.Info(msg)
case types.ERR_WARNING:
@@ -81,7 +81,6 @@ func (logger *FileLogger) Inherit(err error, msg string) {
case types.ERR_FATAL:
logger.Fatal(msg)
}
-
}
func (logger *FileLogger) Info(msg string) {
diff --git a/internal/oauth/oauth.go b/internal/oauth/oauth.go
index 246f1e8..8db2d7e 100644
--- a/internal/oauth/oauth.go
+++ b/internal/oauth/oauth.go
@@ -87,8 +87,8 @@ type OAuthExchangeSession struct {
Verifier string
// filled in when constructing the callback
- Context context.Context
- Server *http.Server
+ Context context.Context
+ Server *http.Server
Listener net.Listener
}
diff --git a/internal/server/custom.go b/internal/server/custom.go
index 4d3c91c..feda1f3 100644
--- a/internal/server/custom.go
+++ b/internal/server/custom.go
@@ -3,6 +3,7 @@ package server
import (
"errors"
"fmt"
+
"github.com/eduvpn/eduvpn-common/types"
)
diff --git a/internal/verify/verify.go b/internal/verify/verify.go
index 458e5e5..43b6c74 100644
--- a/internal/verify/verify.go
+++ b/internal/verify/verify.go
@@ -3,8 +3,8 @@ package verify
import (
"fmt"
- "github.com/jedisct1/go-minisign"
"github.com/eduvpn/eduvpn-common/types"
+ "github.com/jedisct1/go-minisign"
)
// Verify verifies the signature (.minisig file format) on signedJson.