[go-nuts] Go Fonts v2.010

2022-06-16 Thread Nigel Tao
The Go Fonts were originally released in 2016 and version 2.008 came out in 2017. It's taken longer that we'd have liked, but we have just released version 2.010 as of commit 41969df7

[go-nuts] Re: Deadlock

2022-06-16 Thread Luis Furquim
So, finally I solved the problem! The trick is to add a new parameter to the exported function. This parameter will be a javascript callback. Then we call the exported function as a goroutine passing the callback to it. The exported function had also to be changed: no more values to be returned

[go-nuts] Deadlock

2022-06-16 Thread Luis Furquim
Hi Gophers! I am trying to work with web assembly and got stuck with a deadlock problem, The main function has nothing more than simple steps, but if someone wants to check, it is at https://go.dev/play/p/y_0aiIzFA0j . It imports an internal package so it is not compilable outside my computer, it

[go-nuts] Re: Unmarshal semi-structured json data

2022-06-16 Thread Brian Candler
You should start here: https://pkg.go.dev/encoding/json You *can* just unmarshall into a generic interface{} variable and then use type assertions as necessary to coerce: https://go.dev/play/p/b1lCJlGPwLO However, I suggest that if the structure is known in advan

Re: [go-nuts] Hertzbleed?

2022-06-16 Thread Ian Lance Taylor
On Thu, Jun 16, 2022 at 12:52 AM Anssi Porttikivi wrote: > > I made a quick look at Go standard crypto. There are varying implementations > of constant-time/power controls for side-channel timing & power attacks. Con > someone comment on Hertzbleed attack vulnerability? > > https://news.ycombina

[go-nuts] Re: Making concurrent programs to run parallely in Go

2022-06-16 Thread 'Anderson Queiroz' via golang-nuts
You will need a barrier, the wait Group in your case, to guarantee the main goroutine will only continue after all the others have finished their work. Besides if any of your goroutines blocks due to IO the Go scheduler will look for another goroutine to run while the blocked one waits. Another

[go-nuts] Re: what is //go:build difference from //+build?

2022-06-16 Thread peterGo
This information is in the release notes. Go 1.17 Release Notes https://go.dev/doc/go1.17 //go:build lines The go command now understands //go:build lines and prefers them over // +build lines. The new syntax uses boolean expressions, just like Go, and should be less error-prone. As of this re

[go-nuts] Re: what is //go:build difference from //+build?

2022-06-16 Thread peterGo
Bug-resistant build constraints — Draft Design Russ Cox June 30, 2020 https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md Peter On Wednesday, June 15, 2022 at 10:37:16 PM UTC-4 cuiw...@gmail.com wrote: > about when these feature add to golang? > and is all we can do with //g

[go-nuts] Unmarshal semi-structured json data

2022-06-16 Thread Vaishnavi Singh
hi, input: { "birds": { "pigeon":{ "id": 1, "name": "a" }, "eagle":{ "id": 2, "name": "b" } }, "animals": "none" } let us say this is the json data that we have. I want write code to unmarshal data for input.birds[pigeon].name I should get a. Please can someone help me out with structure of thi

[go-nuts] Hertzbleed?

2022-06-16 Thread Anssi Porttikivi
I made a quick look at Go standard crypto. There are varying implementations of constant-time/power controls for side-channel timing & power attacks. Con someone comment on Hertzbleed attack vulnerability? https://news.ycombinator.com/item?id=31743110 -- You received this message because