[go-nuts] Re: Scrapping with Colly - Pulling Elements one at a time

2024-01-28 Thread Tamás Gulácsi
var data MemberDetails detailCollector.OnHTML("div.block-container div.block-body:first-of-type", func(h *colly.HTMLElement) { selection := h.DOM key := selection.Find("dl > dt").Text() val := selection.Find("dl > dd").Text() switch key { case "Full name": data.FullNam

[go-nuts] Scrapping with Colly - Pulling Elements one at a time

2024-01-28 Thread Enrique
Hello, I am new to golang, and am working on a small web scrapper project, where i crawl through a website for a guild that i'm associated with. Ideally I would like to pull the data from each 'dl' (html below) and insert it into the MemberDetails Struct, however all attempts to parse the be

Re: [go-nuts] Build kubernetes with gollvm

2024-01-28 Thread nanzi yang
Hello Yuan Ting: I am trying to build Kubernetes with gollvm, and I am glad you have made some progress. Did you finish compiling Kubernetes with gollvm and generating IR? If it is true, could you show me some practical steps so I can compile the Kubernetes to LLVM IR files? Looking forward to y

Re: [go-nuts] Disable false positive go vet check in tests per line?

2024-01-28 Thread Steven Hartland
Thanks Kurtis, that's a good workaround :) On Sun, 28 Jan 2024 at 21:24, Kurtis Rader wrote: > What happens if you just alias the var? > > argsCopy := args > fmt.Printf("%v\n", argsCopy) > > > On Sun, Jan 28, 2024 at 12:13 PM Steven Hartland < > stevenmhartl...@gmail.com> wrote: > >> When runnin

Re: [go-nuts] Disable false positive go vet check in tests per line?

2024-01-28 Thread Kurtis Rader
What happens if you just alias the var? argsCopy := args fmt.Printf("%v\n", argsCopy) On Sun, Jan 28, 2024 at 12:13 PM Steven Hartland wrote: > When running a test I'm getting: > missing ... in args forwarded to print-like function > > Usually this would be helpful as the pass in variadic shou

[go-nuts] Disable false positive go vet check in tests per line?

2024-01-28 Thread Steven Hartland
When running a test I'm getting: missing ... in args forwarded to print-like function Usually this would be helpful as the pass in variadic should generally be expanded with ... but in this case I specifically want the result of args passed as a slice. Is there a way to disable go vet checks for