Re: [go-nuts] is running interactive or not

2023-06-10 Thread quin...@gmail.com
there has been much discussion in the past about programs that modify their behaviour depending on what stdout is; http://harmful.cat-v.org/cat-v/unix_prog_design.pdf i do to want to start a war, just suggest a different approach is available. my suggestion would be to always expect a password

Re: [go-nuts] extract VCS branch name used during build

2023-02-08 Thread quin...@gmail.com
r (or main) is a useful cross check for our QA dept; we have had cases of them spending time checking development code which is - well, imperfect. -Steve On Tuesday, 7 February 2023 at 16:37:16 UTC klau...@schwarzvogel.de wrote: > Hi! > > On Mon, 06 Feb 2023, quin...@gmail.com wrote: &g

[go-nuts] extract VCS branch name used during build

2023-02-06 Thread quin...@gmail.com
Hi, I would like to be able to extract the VCS branch name used during build. Currently I append "-X main.BranchName=${BRANCH}" to the build line which works, but I was hoping there might be a cunning way to extract this from runtime/debug? Thanks, -Steve -- You received this message becaus

[go-nuts] package private variables for singleton packages - good/bad style

2022-05-13 Thread quin...@gmail.com
Hi, I have 3 years of experience writing go, but decades of writing C. I am reaching for best practices on using package private variables to implement signleton packages. I work on a fairly large microservice project which uses protobufs over NATS for communication and ETCd for a key/val stor

[go-nuts] HPC image processing in go?

2021-11-04 Thread quin...@gmail.com
Hi, Has anyone got any experience of high performance image processing in go? By this I mean doing complex image processing in real time at 4K resolution on commodity hardware. This is really pushing it using carefully written C++ but when we tried writing similar code using go slices we go a

Re: [go-nuts] comment conversion script? inlncmt.awk?

2020-10-02 Thread quin...@gmail.com
Oct 2020, at 15.05, quin...@gmail.com wrote: > > > > Hi, > > > > When I was writing C I used to use a script bcmt.awk (it might have been > one of russ's or erikQ's, I cannot remember) to convert c++ style comments > to K&R syle. Now I am a proud go p

[go-nuts] comment conversion script? inlncmt.awk?

2020-10-02 Thread quin...@gmail.com
Hi, When I was writing C I used to use a script bcmt.awk (it might have been one of russ's or erikQ's, I cannot remember) to convert c++ style comments to K&R syle. Now I am a proud go programmer I find my fingers still want to put starts before and after my slashes when writing comments. Has