Skip to main content
How are we doing? Please help us improve Stack Overflow. Take our short survey
1 vote
1 answer
72 views

I have created a function to return the db connection of a postgresdb using pgxpool. But I don't want to create multiple pools since i will be calling this function each time to execute a query. Since ...
lokesh's user avatar
  • 54
1 vote
2 answers
99 views

I am trying to build a SPA. There are some requirements I am desperately trying to achieve. I have an index.html file as a layout which has some templates defined. The rendering of that works as ...
ZeTr0nIx's user avatar
1 vote
1 answer
101 views

I have been dealing with an issue with the static files in the application I'm building in go using Echo framework, I can not get the files to load, I only get 404 for the static files. I have this in ...
Vlad Popescu's user avatar
1 vote
0 answers
107 views

Echo & Templ Response Issue I am trying to build an admin dashboard for my project using Echo V5 & Templ. My current setup // RegisterRoutes -> a route registeration method used to ...
Ahmad Hamdi's user avatar
  • 1,270
1 vote
0 answers
347 views

I'm planning use templ library like this github.com/a-h/templ v0.2.707 but there is problem where rendering html first will show you my code written so far: go.mod module cozy go 1.21.6 require ( ...
yun's user avatar
  • 33
1 vote
2 answers
934 views

I'm working on an Echo-based Go application where I'm using JWT for authentication. I've integrated the echo-jwt middleware and oapi-codegen for OpenAPI validation. However, I'm facing issues where ...
Coderlife's user avatar
2 votes
0 answers
897 views

i am trying to apply a format to my loggin, with request specific details in the format. EX: when i log "Test log" I should expected to be logged like: 2024-06-22T19:36:48+01:00 INFO [...
João Calhau's user avatar
2 votes
0 answers
116 views

I'm trying to pass the result of a google text to speech api SynthesizeSpeech.audio_content to frontend throught echo framework (golang). resp, err := client.SynthesizeSpeech(c.ctx, &req) if err !=...
MikaAll's user avatar
  • 153
1 vote
0 answers
598 views

I am starting a Go project using Echo and Templ. I have a project structure as follows: / /cmd main.go /static css style.css /view /layout base.templ The problem I am ...
Paul LeDuc's user avatar
1 vote
0 answers
803 views

I'm trying to add otel tracing to my Echo server. I'm basing my code on example but anything is not coming from application to Jaeger instance that i'm running locally. First, I've injected the ...
Arthur S's user avatar
3 votes
0 answers
1k views

Is there a anyway to validate if a field is present in a http request with the echo framwork? Lets take this code for example: type ExampleStruct struct { Name string `json:"name"` ...
PopSmoke's user avatar
1 vote
1 answer
848 views

In my main function I have used the go framework echo to create a Logger and Recover func main() { db := initDB("storage.db") migrate(db) e := echo.New() -> e.Use(...
Alfred Jijo's user avatar
-2 votes
1 answer
617 views

im trying to create an rest api with go/echo and postgres with raw sql but i cant make it work, no idea whats the problem the console prints the text in the title recipe.go func CreateRecipe(recipe *...
vfreis09's user avatar
1 vote
1 answer
294 views

I am building a web API with Echo Labstack framework. I have a middleware in my route to check for user authentication, but then I am having difficulty in passing the data to controller and could not ...
Charas's user avatar
  • 1,837
2 votes
1 answer
41 views

I am a Go newbie. I have written an API server built on the Echo server, using the DeepMap OpenAPI generator and Postgres using pgxpool. It is working well enough and has been in use for a year, but ...
Drew's user avatar
  • 121

15 30 50 per page
1
2 3 4 5
11