Re: [go-nuts] Re: command to pre-compile vendor libs

2024-04-30 Thread Harmen
> > It all works fine, just wondering if there's a nicer way to get all > > "compilable" packages stored in /vendor. > > go list ./vendor/... I knew there had to be a simpler way, thanks! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsub

[go-nuts] command to pre-compile vendor libs

2024-04-29 Thread Harmen
Hi, in both my Nix and Docker builds I have a step to build all libraries in /vendor, and then cache that. Works great, saves me multiple minutes for every CI build. Now I would like to improve the command, this is what I currently use: $ go build -v `cat vendor/modules.txt |grep -v '#'|grep -v

Re: [go-nuts] Convert html text to pdf using go language .

2024-04-05 Thread Harmen
On Fri, Apr 05, 2024 at 06:45:03AM -0700, KRITIKA AWASTHI wrote: > I want to convert html text to pdf using go language . > Previously, I used chromedp > to create PDFs, but it > was consuming too much server capacity. So, currently I am using us

Re: [go-nuts] Re: assert library with generics?

2024-02-23 Thread Harmen
eating legible diffs, and integrates well with > protocmp for when you need to work with protobufs. That's exactly what I was looking for: func Eq[A any](t T, exp, val A, settings ...Setting) Will give it a try, thanks! > > On Thursday, February 22, 2024 at 2:20:57 AM UTC-6 Harm

[go-nuts] assert library with generics?

2024-02-22 Thread Harmen
Hi, anyone has a tip for a nice (small) "assert" test help library which uses generics for the "equals" and "not equals" functions? testify is the obvious library to use for tests, which works fine, but it would be nice to have something which uses generics here. Thanks! -- You received this

Re: [go-nuts] Re: pure-go implementation of sqlite

2020-06-16 Thread Harmen
> > is there (or is somebody working on) a pure-go implementation of sqlite ? > > or at least a subset of it, to be able to read sqlite files ? > > > > -s > > > > PS: I know about the (by now) canonical implementations > > (mattn/go-sqlite and others) but a completely go-based solution would >

Re: [go-nuts] Dependency hell with Go modules

2019-01-17 Thread Harmen
On Fri, Jan 18, 2019 at 07:18:41AM +1300, Justin Israel wrote: > On Fri, Jan 18, 2019, 12:36 AM Francis Chuang wrote: > > > Hey everyone, > > > > I was wondering if I can get some ideas on how to solve this dependency > > problem with Go modules. I am using Go 1.11.4 on Linux (Windows Subsystem >

Re: [go-nuts] go mod tidy pulls in too much

2018-09-28 Thread Harmen
On Fri, Sep 28, 2018 at 10:19:50AM -0700, thepudds1...@gmail.com wrote: > Hi Harmen, > > And my first sentence might not have been clear. When I said "even in your > current situation, 'go build' is still pulling in exactly what it needs", I > was trying

Re: [go-nuts] go mod tidy pulls in too much

2018-09-28 Thread Harmen
On Fri, Sep 28, 2018 at 04:48:32PM +0100, Paul Jolly wrote: > Hi Harmen > > I described the problem on https://github.com/golang/go/issues/27920, which > > got > > closed within three minutes as being "documented", and "works as > > expected"

[go-nuts] go mod tidy pulls in too much

2018-09-28 Thread Harmen
r should I simply stay away from `go mod tidy`? Thanks! Harmen -- 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-nuts+unsubscr...@googlegroups.com.

Re: [go-nuts] Fancy Comments & Documentation

2018-04-19 Thread Harmen
On Wed, Apr 18, 2018 at 10:37:26PM -0700, Chris FractalBach wrote: > So, I'm one of those people who sometimes adds comments like this to my > code: > > ++ > | Program Title| > | Author | > |Date

Re: [go-nuts] Go 1.10 is released

2018-02-16 Thread Harmen
an update of https://golang.org/doc/devel/release.html ? (To serve as reference in wikipedia, mostly) Thanks! Harmen -- 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, sen

Re: [go-nuts] go build for mips

2017-06-22 Thread Harmen
On Thu, Jun 22, 2017 at 11:32:27AM -0700, Nathan Kerr wrote: > > > > I try to build a simple hello world with > > cgo_enabled=1 goarch=mips goos=linux go build hello.go| Result: > > illegal instruction They need to be captitals: $ GOARCH=mips GOOS=linux go build > > > > file information:

Re: [go-nuts] glog with logrotate

2017-06-12 Thread Harmen
On Sun, Jun 11, 2017 at 05:52:14PM -0700, Kumkum wrote: > Hi, > > Is there an easy way to use logrotate with golang/glog > (https://github.com/golang/glog) ? I wrote my own logrotate-like-replacement thing: https://github.com/realzeitmedia/glogrotate maybe that helps. -- You received this mes

Re: [go-nuts] Initializing a channel as "Closed" so that it doesn't block if a "Thing" hasn't been done yet

2016-07-13 Thread Harmen B
I don't understand the problems 100%, but maybe these things can point you in the right direction: - try to see if using a sync.WaitGroup{} can help you. WaitGroups are great to use when you need to keep track of a varying bunch of Go routines. - you can send channels over channels, to wait for th

Re: [go-nuts] caching of cgo compilation

2016-06-16 Thread Harmen B
Or build with `go build -i` On Thu, Jun 16, 2016 at 1:52 AM, Hugh Emberson wrote: > He might be running go test which also seems to rebuild everything every > time unless it has been installed. > > go test -i installs all the dependencies for a test and fixes this problem. > > > On Wed, Jun 15,