Skip to content

Commit

Permalink
Add comments to password.
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed Mar 9, 2017
1 parent b07815f commit de851a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions domain/passhash.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,12 @@ import (
)

var (
// ErrPasswordHash
// ErrPasswordHash is when a password hash operation fails.
ErrPasswordHash = errors.New("Password hash failed.")
)

// Passhash represents a password hashing system.
type Passhash struct {
}
type Passhash struct{}

// PasshashCase represents a service for managing hashed passwords.
type PasshashCase interface {
Expand Down
2 changes: 1 addition & 1 deletion lib/passhash/layer.go → lib/passhash/implement.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package passhash

// Item is an empty struct that allows use of the functions.
// Item represents a password hashing system.
type Item struct{}

// Hash returns a hashed string and an error.
Expand Down

0 comments on commit de851a2

Please sign in to comment.