[go-nuts] Re: GLog library can't be used in Golang 1.18 due to "abortProcess redeclared in this block" error

2023-03-21 Thread 'Carla Pfaff' via golang-nuts
glog_file_other.go uses the "unix" build constraint, which was introduced in Go 1.19: https://tip.golang.org/doc/go1.19#go-unix Go 1.18 doesn't know about it. Since Go 1.18 is no longer supported (only the last two main releases are supported) it's either time to update your Go version to 1.19 o

[go-nuts] Re: Gorilla toolkit - mux with http.FileServer returning 404

2023-03-21 Thread zhiwei dong
The 127.0.0.1:8084/apidoc/ return a 404 Demo package main import ( "fmt" "github.com/gorilla/mux" "net/http" ) func main() { //http.Handle("/apidoc/", http.StripPrefix("/apidoc", http.FileServer(http.Dir("api-swagger" //if err := http.ListenAndServe(":8082", nil); err != nil { // fmt.Print

[go-nuts] Investigating explosive memory growth with race detector

2023-03-21 Thread Marco P.
I have a program, normal memory usage is <50MB and CPU ~5%. This doesn't change over time. Rebuilding with `-race` shows memory <100MB and CPU ~25%. (Consistent with overhead described here: https://go.dev/doc/articles/race_detector#Runtime_Overheads) However, with `-race` enabled after a coup

Re: [go-nuts] About source folder organization - Part II

2023-03-21 Thread Victor Giordano
Eli, thanks for the insight. Is a very interesting read!. >There are a number of different options and no right or wrong answer. *Exactly! *I never say that there was a right or wrong answer. I'm looking to see other real file projects in order to gather more opinions along with something like a "

[go-nuts] GLog library can't be used in Golang 1.18 due to "abortProcess redeclared in this block" error

2023-03-21 Thread Juan Antonio Cid Tomás
Hi there, We have found an error in your library. We have created next test program: package main import ( "fmt" _ "github.com/golang/glog" ) func main() { fmt.Println("Hello world") } Then we have enforced the usage of the latest changes (master branch), instead of th

Re: [go-nuts] About source folder organization - Part II

2023-03-21 Thread Eli Lindsey
There are a number of different options and no right or wrong answer. This was a recent blog that I thought did an excellent job of summarizing some of the more common layouts and trade offs https://appliedgo.com/blog/go-project-layout-eli On Mar 21, 2023, at 10:28 AM, Victor Giordano wrote:Hell

[go-nuts] About source folder organization - Part II

2023-03-21 Thread Victor Giordano
Hello fellows gophers! I do wonder how you organize a project within a file system. Due to the hierarchical nature of a fs (where is parent folder that constains child folder) I do wonder how do you organize the source files into folders. Can you show me some examples? For example, here

[go-nuts] Processing at time of Pgxpool acquire at time load request

2023-03-21 Thread Reeturaj Sahoo
Hello , pgxpool Acquire processing taking more time and did not return anything when more request come to server in less request its working fine . For using Acquire we using below code ctx := context.Background() intconn, err := s.Conn.Acquire(ctx) if err != nil { fmt.Println("Txn id in requ

[go-nuts] Can anyone help me regarding javascript to golang

2023-03-21 Thread yeshwanthchowdary jampala
1) Write a golang grpc api to load the java script using v8go package. 2) write an golang api to run the javascript script from grpc. 3) how api to stop the javascript script grpc -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe fro