fix(lint): Finish to apply linter recommandation
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
|
@ -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:")
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user