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
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
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
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 "
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
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
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
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
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