gofmt
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
f27172cfd8
commit
f7314b439f
|
@ -4,7 +4,7 @@ import "fmt"
|
||||||
|
|
||||||
// ErrUsernameExists represents a "UsernameAlreadyExists" kind of error.
|
// ErrUsernameExists represents a "UsernameAlreadyExists" kind of error.
|
||||||
type ErrUsernameExists struct {
|
type ErrUsernameExists struct {
|
||||||
UserID int64
|
UserID int64
|
||||||
Username string
|
Username string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -16,4 +16,4 @@ func IsErrUsernameExists(err error) bool {
|
||||||
|
|
||||||
func (err ErrUsernameExists) Error() string {
|
func (err ErrUsernameExists) Error() string {
|
||||||
return fmt.Sprintf("a user with this username does already exist [user id: %d, username: %s]", err.UserID, err.Username)
|
return fmt.Sprintf("a user with this username does already exist [user id: %d, username: %s]", err.UserID, err.Username)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue