fix(lint): Finish to apply linter recommandation
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Matthieu 'JP' DERASSE
2022-08-03 13:36:13 +00:00
parent 660a4ef162
commit 7938ce2dfa
14 changed files with 37 additions and 35 deletions

View File

@ -2,7 +2,7 @@ package gin_gonic
import "git.home.m-and-m.ovh/mderasse/gouick/helpers/api_types/base"
// APIType
// APIType represent an empty struct respecting the APITypeInterface.
type APIType struct {
base.APIType
}

View File

@ -2,7 +2,7 @@ package go_swagger
import "git.home.m-and-m.ovh/mderasse/gouick/helpers/api_types/base"
// APIType
// APIType represent an empty struct respecting the APITypeInterface.
type APIType struct {
base.APIType
}

View File

@ -12,7 +12,6 @@ import (
// CheckInitialize will do preliminary check before initializing a new project.
func (a APIType) CheckInitialize() error {
log.Debugf("Starting %s check initialize", string(a.GetName()))
// Get current path

View File

@ -13,7 +13,6 @@ import (
// GetInitializeUserInput will ask user to provide information that allow initialization of a project.
func (a APIType) GetInitializeUserInput(params *models.UserInputParams) (*models.UserInputParams, error) {
log.Debugf("Starting %s user input", a.GetName())
// Get current path
@ -29,8 +28,8 @@ func (a APIType) GetInitializeUserInput(params *models.UserInputParams) (*models
log.Debug("Checking if we are in GoPath")
isInGoPath := helpers.IsInGoPath(currentPath)
if !isInGoPath {
if !isInGoPath {
log.Debug("We are not in GoPath, ask extra info")
goModulePath := helpers.StringInput()
log.Info("Go Module name:")

View File

@ -2,7 +2,7 @@ package api_types
import "git.home.m-and-m.ovh/mderasse/gouick/helpers/models"
// APITypeInterface
// APITypeInterface is the interface that need to be respected by an APIType.
type APITypeInterface interface {
CheckInitialize() error
GetName() models.APITypeName

View File

@ -2,7 +2,7 @@ package mojolicious
import "git.home.m-and-m.ovh/mderasse/gouick/helpers/api_types/base"
// APIType
// APIType represent an empty struct respecting the APITypeInterface.
type APIType struct {
base.APIType
}