Re: [go-nuts] How to define struct with defined properties that is also a map

2024-09-12 Thread burak serdar
The current json implementation in the stdlib does not support a catchall like that. Also, you cannot embed a map in a struct. You can replace JIRAFields with a map[string]any. If there are keys with known structures, you can do a map[string]json.RawMessage, and then you can do json.Unmarshal(fiel

[go-nuts] How to define struct with defined properties that is also a map

2024-09-12 Thread David Karr
This is probably basic, but I'm working on some code that unmarshals JIRA tickets (just for some context). Examining the Json output, there is a big "fields" object that mostly contains custom fields, but also some defined fields. Right now, I defined "Fields" as a "map[string]any", which is approp

[go-nuts] ANN: Basic test impact analysis (benchmark shows avg 29% reduction in test execution time atm)

2024-09-12 Thread 'Markus Zimmermann' via golang-nuts
[image: with-go-test-with-test-runner.png] We implemented a basic test impact analysis that identifies and then executes affected tests for a change, e.g. for a range of commits. Our benchmark for the repositories we looked at shows an average 29% reduction in test execution time. I am very mu