Skip to content

Instantly share code, notes, and snippets.

@iporsut
Created October 21, 2014 15:16
Show Gist options
  • Save iporsut/d3175fd341c70a257077 to your computer and use it in GitHub Desktop.
Save iporsut/d3175fd341c70a257077 to your computer and use it in GitHub Desktop.
AcceptingAuthorizerFake Go
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