Here is the main function: 

package main 

import (
    "encoding/json"
    "io/ioutil"
    "net/http"
    "fmt"

    "google.golang.org/appengine"
)


func main () {
    // BigQuery
    InitBigQuery()
    defer bigQueryClient.Close()

    http.HandleFunc("/", HandlerBase)
    http.HandleFunc("/user", HandlerUser)
    http.HandleFunc("/event", HandlerEvent)

    appengine.Main()
}

All the files (main.go, bigquery.go (client creation, data streaming), 
handlers.go, etc.) are in the same folder.


Le mardi 9 mai 2017 20:50:41 UTC+2, George (Cloud Platform Support) a 
écrit :
>
> Hi William, 
>
> Before attempting to go in any more depth: how do you run your code, in 
> detail (not only the function definition)? The error indicates a function 
> main(). It might prove helpful to see the main function in context, how you 
> call your InitBigQuery() function, exactly. 
>
> What is the directory structure of your code, how is your workspace 
> organized? 
>
> Otherwise, the example given on the "BigQuery Client Libraries" page 
> <https://cloud.google.com/bigquery/docs/reference/libraries#client-libraries-install-go>
>  
> seems quite helpful for what you attempt to do. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/a9f6a2cc-4e6b-4cb7-953d-141a6e7d6d4d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to