Re: [go-nuts] Is it possible to link object files generated from the Go toolchain using clang linker (lld) ?

2021-09-08 Thread Thor Odinson
Ian, Thanks for the clarification. To confirm, setting go env CC=clang CXX=clang++, won't be effective for -buildmode option. On Thursday, 9 September 2021 at 05:23:45 UTC+5:30 Ian Lance Taylor wrote: > On Wed, Sep 8, 2021 at 4:19 AM Thor Odinson > wrote: > > > > I'm bit confused with this, >

Re: [go-nuts] Is it possible to link object files generated from the Go toolchain using clang linker (lld) ?

2021-09-08 Thread Ian Lance Taylor
On Wed, Sep 8, 2021 at 4:19 AM Thor Odinson wrote: > > I'm bit confused with this, > > The normal way to handle this is to > > use -buildmode=c-archve, which produces an object that the clang > > linker does understand; however, as you noted, that assumes that the > > Go code will be linked with

Re: [go-nuts] Re: slices grow at 25% after 1024 but why 1024?

2021-09-08 Thread Arnaud Delobelle
Nice! Arnaud On Tue, 7 Sep 2021, 18:02 Keith Randall, wrote: > Sounds good. CL up for review at > https://go-review.googlesource.com/c/go/+/347917 > > On Mon, Sep 6, 2021 at 7:30 PM Arnaud Delobelle wrote: > >> If the growing function is currently >> >> f(x) = 2x for x < 1024 >> f(x) =

Re: [go-nuts] Help Gmail Post Master

2021-09-08 Thread Kurtis Rader
Can you show us an example of the code you've written that doesn't do what you expect? Can you expand on what you mean by "some problem"? Did you read the associated documentation at https://pkg.go.dev/google.golang.org/api@v0.56.0/gmailpostmastertools/v1 and have you verified you can get those exa

Re: [go-nuts] Right way to fan out work loads

2021-09-08 Thread Matt KØDVB
I’d like to point you to a video I made where I work through different ways to divide up work, both the “work pool” approach and just creating lots of goroutines: https://www.youtube.com/watch?v=SPD7TykYy5w&list=PLoILbKo9rG3skRCj37Kn5Zj803hhiuRK6&index=27

Re: [go-nuts] Right way to fan out work loads

2021-09-08 Thread burak serdar
On Wed, Sep 8, 2021 at 10:02 AM David Belle-Isle wrote: > > Hi, > > I've been facing this question for a while and never managed to find the > "right" answer. Hopefully this forum will be able to enlighten me a little > bit. > > Given a very simple pattern: Consume some data, transform it, store

[go-nuts] Right way to fan out work loads

2021-09-08 Thread David Belle-Isle
Hi, I've been facing this question for a while and never managed to find the "right" answer. Hopefully this forum will be able to enlighten me a little bit. Given a very simple pattern: Consume some data, transform it, store it (ETL). The storing part is slow(er) and needs to be fanned out.

[go-nuts] Help Gmail Post Master

2021-09-08 Thread Muhammad Abdur Rofi
Hello Guys, My name is Abdur Rofi, I'm from Indonesia. I'm new in Golang. I have some problem to use https://github.com/googleapis/google-api-go-client/tree/master/gmailpostmastertools. Maybe someone can help me to show some example about how to use this library. Thank's -- You received this

Re: [go-nuts] Is it possible to link object files generated from the Go toolchain using clang linker (lld) ?

2021-09-08 Thread Thor Odinson
Ian, I'm bit confused with this, > The normal way to handle this is to > use -buildmode=c-archve, which produces an object that the clang > linker does understand; however, as you noted, that assumes that the > Go code will be linked with C code and more generally with the C > library, which I

Re: [go-nuts] Does the module name have to include the repo name when you publish a Go module?

2021-09-08 Thread Brian Candler
There is also the "replace" directive: mkdir mod1 mod2 cd mod1 go mod init key-value-mod === code.go === package kv import ( "fmt" ) func DoIt() { fmt.Println("Hello") } cd ../mod2 go mod init bar go mod edit -replace=key-value-mod=../mod1 === prog.go === package main import ( "key