Created
January 24, 2015 18:33
-
-
Save sebastiandeutsch/78bc6ff7dc050cf63fed to your computer and use it in GitHub Desktop.
This file contains 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
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