[go-nuts] Does there exist a curated list of all Go Gopher images?

2016-12-01 Thread Jack
Is there a list/page/album/etc somewhere of every reusable Go Gopher image and it's associated license/author? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to

[go-nuts] Re: Recommended design pattern for real-time monitoring and control of an observatory

2017-04-06 Thread jack
nfluxdb-grafana/> describing the setup. I'm also working on a webinar describing how to do this. Jack On Wednesday, April 5, 2017 at 5:22:15 PM UTC-7, James McHugh wrote: > > I'm writing some software to monitor and control my observatory. It will > have many many inputs (clouds, rain

[go-nuts] Re: Is go1.10beta1 a debug or unoptimized build? (possible regression)

2017-12-23 Thread Jack
I ran the same benchmarks on my local linux NUC and the code actually had small performance improvements between 1.9 and 1.10 (some better some not). It appears to be isolated to running the benchmarks on my mac. On Saturday, December 23, 2017 at 5:38:31 PM UTC-6, Krzysztof Kowalczyk wrote: >

[go-nuts] Is go1.10beta1 a debug or unoptimized build? (possible regression)

2017-12-22 Thread Jack
Hi, I'm benchmarking my circuitbreaker implementation against others and decided to run my benchmarks against https://golang.org/dl/#unstable (using my mac). I installed it following go get

[go-nuts] Ann: pgx v3 - PostgreSQL Driver and Toolkit

2017-07-24 Thread Jack Christensen
(such as for a custom connection pooler). https://github.com/jackc/pgx Jack -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nut

Re: [go-nuts] repeatable builds

2017-10-18 Thread Jack Christensen
On 10/18/2017 03:08 AM, Conrad Wood wrote: I did (admittedly found it only after I send the email). I give that a try and see how it goes - thank you! And advice on point #2 by any chance? When I have a mixed language repo I tend to include an entire GOPATH in the the repo. Something like

Re: [go-nuts] Re: How to know if interface{} data is nil w/o reflecting?

2017-11-01 Thread Jack Christensen
change. The package would expose either a NilInterface value or a IsNilInterface method. Users of the package would either compare to the pkg.NilInterface or call the pkg.IsNilInterface method. Then the linter could warn on all direct interface comparisons to nil. Jack -- You receive

Re: [go-nuts] About build Go Archive

2019-09-06 Thread Jack Wang
But I can use -buildmod=plugin to generate a "ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked", and it can be used. I want to konw if it's the only way to generate a binary package and the builmode=archive/shared not work anymore. 在 2019年8月28日星期三 UTC+8下午10:36:31,Ian

[go-nuts] MaxDiskSize MaxLogCount for glog?

2022-04-07 Thread 'Jack Li' via golang-nuts
Hi group, I only find MaxSize in glog which sets the size of each log file. Can glog support the options like how many disk size (ie. 10%, 1.8G, etc.) all the log files may use in total, and the count (ie. 10) of log files it can save. For example, logfile1.txt, logfile2.txt, ...,

[go-nuts] How go.work knows which module refers to which folder

2022-04-06 Thread 'Jack Li' via golang-nuts
Hi group, In the go.mod replace way, there’s a one-to-one mapping relationship, for example, the module example.com/hello is mapped to folder …/hello ``` $ go mod edit -replace example.com/hello=../hello $ view go.mod replace example.com/hello = ../hello $ ``` Now with the go.work way. If

[go-nuts] Handle 1 million concurrent connections with 50 lines Go code

2022-04-06 Thread 'Jack Li' via golang-nuts
Hi group, I am going through this page: https://studygolang.com/articles/22820 , It claims that the 50 lines of Go code handles 1 million concurrent connections from network clients, on 1 single server machine with a 4-Core CPU and 16G memory. Does the package net already utilize IO

Re: [go-nuts] Missing /usr/lib/go/pkg/include/ for native binaries

2022-04-08 Thread 'Jack Li' via golang-nuts
Yes, I download the latest go 1.18 installer for macOS from golang.google.cn. There's no problem with the installer from the official site. --Original-- From: "Ian Lance Taylor"http://deb.debian.org/debian bullseye-backports/main amd64 Packages ***

Re:[go-nuts] Re: How go.work knows which module refers to which folder

2022-04-06 Thread 'Jack Li' via golang-nuts
contained in subdirectories of its argument directory. Those modules may be added by the directory containing their go.mod file in separate 'use' directives. Hope that helps, and sorry if that does not address your question. Regards, thepudds On Wednesday, April 6, 2022 at 9:43:12 AM UTC-4 Jac

Re: [go-nuts] float exactness

2022-04-09 Thread 'Jack Li' via golang-nuts
Thanks Robert, It is great! a, _ := decimal.NewFromString("0.1") b, _ := decimal.NewFromString("0.2") c := a.Add(b) fmt.Println("decimal:", c) a = decimal.NewFromFloat(0.1) b = decimal.NewFromFloat(0.2) c = a.Add(b)

Re:[go-nuts] Re: MaxDiskSize MaxLogCount for glog?

2022-04-09 Thread 'Jack Li' via golang-nuts
Is it still maintained? The last commit is Aug 20, 2021 which is more than half year ago. The last commit of glog in C++ is just 5 days ago. --Original-- From: "peterGo"https://github.com/golang/glog#glog "The code in this repo is for export only and is

[go-nuts] float exactness

2022-04-09 Thread 'Jack Li' via golang-nuts
Hi group, 1. Is there a package can do exact float operations, like Decimal in Python? For example: x := 0.1; y := 0.2; z := x + y; z will be exact 0.3 2. Why literal operation is exact, variable is not? fmt.Println(0.1 + 0.2) // 0.3 exactly fmt.Println(x + y) // 0.30004

[go-nuts] Why Go has only slice and map

2022-04-12 Thread 'Jack Li' via golang-nuts
Hi group, Why Go provides only 2 built-in data structures, slice and map. It has just more than C, but less than all other programming languages I've heard of, C++, Python, Swift, Rust. I think this simplicity attracts me very much. Sometimes I can use only one data structures for a