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
// Follow instructions here to create credentials to access google api shortener service: | |
// https://developers.google.com/identity/protocols/application-default-credentials | |
// I set the env variable GOOGLE_APPLICATION_CREDENTIALS with the path of the json credential file. | |
package main | |
import ( | |
"fmt" | |
"golang.org/x/net/context" | |
"golang.org/x/oauth2/google" |