Created
October 21, 2014 15:16
-
-
Save iporsut/d3175fd341c70a257077 to your computer and use it in GitHub Desktop.
AcceptingAuthorizerFake Go
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type AcceptingAuthorizerFake struct { | |
} | |
func (fake *AcceptingAuthorizerFake) Authorize(username, password string) (bool, error) { | |
return (username == "Bob"), nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment