Golint
This commit is contained in:
parent
a880fdea82
commit
efb0cc13fa
41 changed files with 569 additions and 386 deletions
|
@ -3,5 +3,6 @@ package errors
|
|||
import "errors"
|
||||
|
||||
var (
|
||||
ExpiredToken = errors.New("this token has expired")
|
||||
// ErrExpiredToken when expired token.
|
||||
ErrExpiredToken = errors.New("this token has expired")
|
||||
)
|
||||
|
|
|
@ -3,6 +3,8 @@ package errors
|
|||
import "errors"
|
||||
|
||||
var (
|
||||
CharacteristicNotFound = errors.New("Characteristic not found")
|
||||
CharacteristicNotUpdated = errors.New("Characteristic not updated")
|
||||
// ErrCharacteristicNotFound when not found.
|
||||
ErrCharacteristicNotFound = errors.New("Characteristic not found")
|
||||
// ErrCharacteristicNotUpdated when not updated.
|
||||
ErrCharacteristicNotUpdated = errors.New("Characteristic not updated")
|
||||
)
|
||||
|
|
|
@ -3,5 +3,6 @@ package errors
|
|||
import "errors"
|
||||
|
||||
var (
|
||||
MustProvideOptions = errors.New("Must provide necessary options")
|
||||
// ErrMustProvideOptions when missing options.
|
||||
ErrMustProvideOptions = errors.New("Must provide necessary options")
|
||||
)
|
||||
|
|
|
@ -3,5 +3,6 @@ package errors
|
|||
import "errors"
|
||||
|
||||
var (
|
||||
MeasurementNotFound = errors.New("Measurement not found")
|
||||
// ErrMeasurementNotFound when not found.
|
||||
ErrMeasurementNotFound = errors.New("Measurement not found")
|
||||
)
|
||||
|
|
|
@ -3,6 +3,8 @@ package errors
|
|||
import "errors"
|
||||
|
||||
var (
|
||||
SpeciesNotFound = errors.New("Species not found")
|
||||
SpeciesNotUpdated = errors.New("Species not updated")
|
||||
// ErrSpeciesNotFound when not found.
|
||||
ErrSpeciesNotFound = errors.New("Species not found")
|
||||
// ErrSpeciesNotUpdated when not updated.
|
||||
ErrSpeciesNotUpdated = errors.New("Species not updated")
|
||||
)
|
||||
|
|
|
@ -3,6 +3,8 @@ package errors
|
|||
import "errors"
|
||||
|
||||
var (
|
||||
StrainNotFound = errors.New("Strain not found")
|
||||
StrainNotUpdated = errors.New("Strain not updated")
|
||||
// ErrStrainNotFound when not found.
|
||||
ErrStrainNotFound = errors.New("Strain not found")
|
||||
// ErrStrainNotUpdated when not updated.
|
||||
ErrStrainNotUpdated = errors.New("Strain not updated")
|
||||
)
|
||||
|
|
|
@ -3,5 +3,6 @@ package errors
|
|||
import "errors"
|
||||
|
||||
var (
|
||||
SourceNotByteSlice = errors.New("Scan source was not []byte")
|
||||
// ErrSourceNotByteSlice when not a byte-slice.
|
||||
ErrSourceNotByteSlice = errors.New("Scan source was not []byte")
|
||||
)
|
||||
|
|
|
@ -3,9 +3,14 @@ package errors
|
|||
import "errors"
|
||||
|
||||
var (
|
||||
UserNotFound = errors.New("No user found")
|
||||
UserNotUpdated = errors.New("Count 0")
|
||||
UserMissingEmail = errors.New("Missing email")
|
||||
InvalidEmailOrPassword = errors.New("Invalid email or password")
|
||||
EmailAddressTaken = errors.New("Email address is already registered")
|
||||
// ErrUserNotFound when not found.
|
||||
ErrUserNotFound = errors.New("No user found")
|
||||
// ErrUserNotUpdated when not updated.
|
||||
ErrUserNotUpdated = errors.New("Count 0")
|
||||
// ErrUserMissingEmail when missing email.
|
||||
ErrUserMissingEmail = errors.New("Missing email")
|
||||
// ErrInvalidEmailOrPassword when invalid login credentials.
|
||||
ErrInvalidEmailOrPassword = errors.New("Invalid email or password")
|
||||
// ErrEmailAddressTaken when email already registered.
|
||||
ErrEmailAddressTaken = errors.New("Email address is already registered")
|
||||
)
|
||||
|
|
Reference in a new issue