Skip to content

Instantly share code, notes, and snippets.

@luizbranco luizbranco/main.go
Created Nov 23, 2017

Embed
What would you like to do?
promptui demo step 3
const apiURL = "http://www.recipepuppy.com/api/"
query := apiURL + "?q=" + keyword
client := &http.Client{Timeout: 10 * time.Second}
r, err := client.Get(query)
if err != nil {
fmt.Println(err)
os.Exit(1)
}
defer r.Body.Close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.