How Answer A Google Forms Through Code?

Hello mates, I have created a Google Forms link ( and I am trying to send the answers from inside the code. Anyone could help me to start, or with some sample code, how answer a google forms from inside the code?

I ma trying the following solutions:

package main

import (

func HTTP(url string) (string, error) {
	resp, err := http.Get(url)
	if err != nil {
		return "", fmt.Errorf("GET error: %v", err)
	defer resp.Body.Close()

	if resp.StatusCode != http.StatusOK {
		return "", fmt.Errorf("Status error: %v", resp.StatusCode)

	data, err := ioutil.ReadAll(resp.Body)
	if err != nil {
		return "", fmt.Errorf("Read body: %v", err)

	return string(data), nil
func main() {
	fmt.Println("\nEnter your name")
	var name string

	fmt.Println("\nEnter email:")
	var emailreponse string

	HTTP_0 := ""
	HTTP_1 := "formResponse?&submit=Submit?"
	HTTP_2 := "usp=pp_url"
	Entry_0 := "&entry.194375880=" + name
	Entry_1 := "&entry.2012222327=" + emailreponse

	FormResponse, _ := HTTP(HTTP_0 + HTTP_1 + HTTP_2 + Entry_0 + Entry_1)



I change the forms to this one where the email is not automatic collected.

But I do not know how send this url, I think use Get is not the correct approach right?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.