Skip to content

Instantly share code, notes, and snippets.

@sebastiandeutsch
Created January 24, 2015 18:33
Show Gist options
  • Save sebastiandeutsch/78bc6ff7dc050cf63fed to your computer and use it in GitHub Desktop.
Save sebastiandeutsch/78bc6ff7dc050cf63fed to your computer and use it in GitHub Desktop.
gothic.GetProviderName = func(request *http.Request) (string, error) {
vars := mux.Vars(request)
provider := vars["provider"]
if provider == "" {
return provider, errors.New("you must select a provider")
}
return provider, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment