Re: [go-nuts] Re: rsc.io/script: How to contribute?

2024-03-07 Thread Eli Bendersky
On Thu, Mar 7, 2024 at 5:44 AM twp...@gmail.com wrote: > Thanks, but I'm already heavily invested in testscript with over 10K lines > of scripts and a lot of custom configuration, and commander-cli/commander > clearly lacks functionality I need. > OOC, is there anything wrong with

Re: [go-nuts] Go/Python interop

2023-11-22 Thread Eli Bendersky
On Wed, Nov 22, 2023 at 11:31 AM Sebastien Binet wrote: > Hi there, > > In this week "compiler minutes" [1], one can read: > > """ > - Go on future platforms (RAM efficiency. NUMA?) > - (maybe) Go-Python interop for AI-powered applications > - [David]: is it a good idea to use cgo for Go-Python

Re: [go-nuts] (minor) broken link in the Go 1.21 release notes.

2023-08-16 Thread Eli Bendersky
Thanks for reporting. Sent https://go-review.googlesource.com/c/website/+/520215 with a fix On Wed, Aug 16, 2023 at 1:59 AM Jochen Voss wrote: > Hello, > > Not really important, but there is a somewhat broken link in the Go 1.21 > release notes. The introduction says "See “Go versions” in the

Re: [go-nuts] Redfining loop variable semantics - what's the plan?

2023-03-25 Thread Eli Bendersky
On Sat, Mar 25, 2023 at 2:33 AM Amnon wrote: > Thanks for a very succinct response. > > So if I understand the CL, there will be no change in behaviour in 1.21, > unless you set GOEXPERIMENT=loopvar > > - Amnon > That's correct. You (and everyone else) can play with this GOEXPERIMENT in 1.21

Re: [go-nuts] Refresher tutorial

2022-12-10 Thread Eli Bendersky
There's a good list of resources recommended at https://go.dev/learn/ Start with https://go.dev/tour/welcome/1 Then check out the official tutorials at https://go.dev/doc/tutorial/ On Sat, Dec 10, 2022 at 9:18 AM Ken wrote: > Hi, when I first learned golang, there was a nice tutorial

Re: [go-nuts] Writing Json output to a file

2022-09-29 Thread Eli Bendersky
On Thu, Sep 29, 2022 at 10:47 AM Mahesh Sharma wrote: > Hi, > I'm collecting some JSON from an end point. I can print this to screen: > fmt.Printf("%s\n", bodyText). > > I'm struggling to figure how to write the bodyText to a file. > > Any help appreciated. > See

Re: [go-nuts] How to run a java file using go script.

2022-08-03 Thread Eli Bendersky
You should be able to use the os/exec package (https://pkg.go.dev/os/exec) to invoke external programs from Go. On Wed, Aug 3, 2022 at 5:45 AM PK wrote: > Hi everyone, > I am new to golang. I was writing a script, with which I want to run a > java program. > Can anyone please let me know how to

Re: [go-nuts] ast.NewPackage errors for built in types

2021-10-16 Thread Eli Bendersky
le that in your environment (WSL2 or what not) invoking subprocesses and stat-ing the filesystem is particularly costly > > > On Sat, 16 Oct 2021 at 14:38, Eli Bendersky wrote: > >> >> >> On Fri, Oct 15, 2021 at 2:13 PM Steven Hartland >> wrote: >> >&g

Re: [go-nuts] ast.NewPackage errors for built in types

2021-10-16 Thread Eli Bendersky
On Fri, Oct 15, 2021 at 2:13 PM Steven Hartland wrote: > I converted my code to x/tools/go/packages > and while it > did solve the problem it's VERY slow in comparison. > > I have a set of 21 tests operating on a single package which has

Re: [go-nuts] sql.Row doubt

2021-08-05 Thread Eli Bendersky
In what case do you find the need to call Columns() on a Row? Generally if you have access to a Row, you also have access to a Rows, which does have a Columns() method. Eli On Thu, Aug 5, 2021 at 10:34 AM Daniel da Silva wrote: > Hello guys! > > Why doesn't sql.Row implement the Columns()

Re: [go-nuts] Go 1.16 and modules

2021-03-29 Thread Eli Bendersky
On Mon, Mar 29, 2021 at 4:52 PM Rich wrote: > I really WANT to use go modules on all my projects, but there are times I > just want to write a quick piece of code that I can 'go run'. Its usually > just 20 lines, just used to test something out like a rest call to an > internal server (can't do

Re: [go-nuts] How to search standard libarary?

2021-03-16 Thread Eli Bendersky
I really like devdocs.io for this You type "Go" and TAB, and then it will only autocomplete in the Go stdlib. On Tue, Mar 16, 2021 at 7:09 AM jake...@gmail.com wrote: > > For years now, when I needed to casually lookup a standard library > function I would use the search on the website. Like

Re: [go-nuts] Web Application Development

2020-12-09 Thread Eli Bendersky
On Tue, Dec 8, 2020 at 10:43 PM AWS CloudExperts wrote: > > Hello Friends > I am trying to build an WebApp, and this is my first one. do we need to > use external router like gorilla/mux for routing ? > > You certainly don't "need" to use one. Go has a router built into the net/http package. A