Questions tagged [google-app-engine-golang]

37 questions
5
votes
0 answers

invalid runtime value go when trying to deplay a proxy app

I'm trying to deploy my direction app in Google Cloud Console using the terminal with: gcloud app deploy But I get this error: peter@cloudshell:~/direction-proxy (myapp-3f67k)$ gcloud app deploy ERROR: (gcloud.app.deploy) Staging command…
3
votes
1 answer

Suddenly, the Go language Google Cloud API to speech-to-text is not working! /lib64/libc.so.6: version `GLIBC_2.32' not found

I have written a Go program that takes a recording file and submits the first 59 seconds of it (to totally avoid the using the Google Cloud Storage stuff, which for multiple reasons is impractical to use on a large number of servers) to the google…
3
votes
1 answer

Golang - Create Array of Struct?

How to create an array of struct with user input ? I am trying to create a loop that will get input from user for a struct and add it into an array of struct package main import "fmt" type person struct { name string age int } var n…
Sam
  • 345
  • 3
  • 14
3
votes
2 answers

AppEngine deploy cannot find Go packages

I have an AppEngine micro service setup in a monorepo, there is shared code between services so I've refactored to unify my go modules (they're really similar). The refactor works locally, builds and runs, and Goland compiles happily. My issue is…
2
votes
1 answer

How to do AppEngine Go 1.16 local development?

AppEngine supports Go 1.16 for a year now. But dev_appengine.py still doesn't: RuntimeError: Unknown runtime 'go116'; supported runtimes are 'custom', 'go', 'go111', 'go112', 'go113', 'go114', 'go115', 'java', 'java7', 'java8', 'php55', 'php72',…
2
votes
4 answers

How can I skip a field for json.Marshal & not for json.Unmarshal in go?

type Alpha struct { Name string `json:"name"` SkipWhenMarshal string `json:"skipWhenMarshal"` } func MarshalJSON(out interface{}){ json.Marshal(out) } Is it possible to ignore the SkipWhenMarshal field when I do json.Marshal but…
user12489349
1
vote
0 answers

How do I properly parse a yaml file that can't Marshall to []string?

So I'm looking to parse a yaml file for my job, and being fairly new to Golang I am a bit stuck... Im used to being on python all the time so some concepts are still dragging in my head for Go. But I have the following issue ... So I have this yaml…
1
vote
0 answers

Gomod athens unable to download private repo dependency getting 404 not found in gitlab pipelines

original error: go: downloading gitlab.ea.com/group/repo v1.0.0 tools/buildhelper/main.go:20:2: gitlab.ea.com/group/repo@v1.0.0: reading…
1
vote
0 answers

Could not import "google.golang.org/appengine/delay"

I am trying to create a Google analytics tracking beacon by following this git repo have gotten stuck trying to solve why this one import keeps throwing errors. The specific issue comes from this import: "google.golang.org/appengine/delay" Here's…
1
vote
0 answers

Step #0: exec: "gcc": executable file not found in $PATH

I keep running into this error when trying to deploy a very simple website to App Engine (this code without the Dockerfile, as specified in this tutorial). I am running on macOS Monterey 12.2.1, go 1.18, fresh install of the Google Cloud SDK. I'm…
1
vote
0 answers

Unexpected signal during runtime execution in Go lang

I am getting this error in Go after running my program for around 25 mins still.i am using the library like gorobotn ,sqlite to save the data and one more screentshots library. in ubuntu i am using go version of 1.14.6. but in windows i am not…
Raj Kumar
  • 11
  • 3
1
vote
1 answer

go-git clone through proxy

I coding a small application on golang and using go-git to clone git repository, but when I run it through a proxy, it can not to connect to internet. A piece of code below: url := os.Getenv("APP_DOWNLOAD_LOCATION") username := "username" password…
1
vote
1 answer

Add custom function to render mustache template in golang using cbroglie

I am using https://github.com/cbroglie/mustache for rendering mustache file.I want basically this example to work in go lang.But I guess custom function is not there. Template: {{#wrapped}} {{name}} is awesome. {{/wrapped} } { "name":…
1
vote
2 answers

getting error message: “rpc error: code = PermissionDenied desc = Missing or insufficient permissions.” datastore + Appengine + Golang

In local system is working perfectly but when deployed to production using gcloud app deploy it is throwing error on every end point calling **> message: "rpc error: code = PermissionDenied desc = Missing or insufficient permissions."**
1
vote
1 answer

Query on Array of strings to get matched values from Datastore

I have following scenario where struct is type Band struct { Name string `json:"name"` Albums []String `json:"album"` GradeLevel []string `json:"gradeLevel,omitempty"` Topics []string `json:"topics,omitempty"` } Data stored like…
Narendar
  • 370
  • 10
  • 20
1
2 3