You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
246 B

  1. package openid
  2. import (
  3. "net/http"
  4. )
  5. type OpenID struct {
  6. urlGetter httpGetter
  7. }
  8. func NewOpenID(client *http.Client) *OpenID {
  9. return &OpenID{urlGetter: &defaultGetter{client: client}}
  10. }
  11. var defaultInstance = NewOpenID(http.DefaultClient)