Add linters and fix lint issues

This commit is contained in:
Quentin McGaw
2020-10-20 02:45:28 +00:00
parent f9bef8ecda
commit 9c73faaaeb
107 changed files with 739 additions and 422 deletions

View File

@@ -7,7 +7,7 @@ import (
"github.com/qdm12/gluetun/internal/params"
)
// ControlServer contains settings to customize the control server operation
// ControlServer contains settings to customize the control server operation.
type ControlServer struct {
Port uint16
Log bool
@@ -22,7 +22,8 @@ func (c *ControlServer) String() string {
return strings.Join(settingsList, "\n |--")
}
// GetControlServerSettings obtains the HTTP control server settings from environment variables using the params package.
// GetControlServerSettings obtains the HTTP control server settings from
// environment variables using the params package.
func GetControlServerSettings(paramsReader params.Reader) (settings ControlServer, err error) {
settings.Port, err = paramsReader.GetControlServerPort()
if err != nil {