Re: [go-nuts] Question About Interface Field in a Structure

2025-05-23 Thread Def Ceb
You're creating new copies of the values and modifying the copies, rather than storing a reference and then modifying the original data through it. You'd use *string and *bool there to have both change. This would be somewhat tedious and involve a good amount of type casting though, if you were to

[go-nuts] Question About Interface Field in a Structure

2025-05-23 Thread 'jlfo...@berkeley.edu' via golang-nuts
I'm trying to write a program (see below) that passes a slice of structs to a function. One of the struct fields is an interface{} that sometimes will hold a boolean value and other times will hold a string value. To do this, I put either a bool or a string variable in the field. What I want to

Re: [go-nuts] wanix = webassembly + unix -> plan9 in the browser

2025-05-23 Thread Jason E. Aten
Hi Boris, Well it is a browser, and plan9ish design, so "of course" the network is there, plus with namespaces...? would be my _guess_. It's still in preview release 0.3, and so I asked the author your question about using Go inside wanix on his/the wanix discord. It turns out he's on vacatio

Re: [go-nuts] wanix = webassembly + unix -> plan9 in the browser

2025-05-23 Thread Nagaev Boris
On Thu, May 22, 2025 at 11:48 PM Jason E. Aten wrote: > > Despite the hilarious name, this is the most awesome display > of developer virtuosity-- > > Wanix is a plan9-sh, fully local, web development environment. > It runs a plan9 like shell in the browser (using a > service worker) that can JIT

Re: [go-nuts] Execute so exported function in Go

2025-05-23 Thread 'Brian Candler' via golang-nuts
This might also be relevant: https://github.com/ebitengine/purego On Thursday, 15 May 2025 at 21:47:50 UTC+1 rudeus greyrat wrote: > Thanks Jason, I was looking for something like that indeed :) > > However meanwhile I found an amazing Go package that does what I want > https://github.com/rainyc