[go-nuts] Re: How do you escape a dot in a /usr/local/go/src/cmd/go/testdata/script pattern

2019-12-17 Thread Gert
never mind, just plain regex \[ \. On Wednesday, December 18, 2019 at 2:38:52 AM UTC+1, Gert wrote: > > > https://go-review.googlesource.com/c/go/+/201857/7/src/cmd/go/testdata/script/doc.txt > > go test cmd/go -run=Script/^doc$ > > I guess this fails because of a dot located in the pattern 'go do

[go-nuts] How do you escape a dot in a /usr/local/go/src/cmd/go/testdata/script pattern

2019-12-17 Thread Gert
https://go-review.googlesource.com/c/go/+/201857/7/src/cmd/go/testdata/script/doc.txt go test cmd/go -run=Script/^doc$ I guess this fails because of a dot located in the pattern 'go doc [.]' How do you escape it? -- You received this message because you are subscribed to the Google Groups "

Re: [go-nuts] How to mock structs with interdependent interface methods?

2019-12-17 Thread Karthik Krishnamurthy
Thanks for the response Ian. My apologies for a delayed response (inline). On Friday, December 13, 2019 at 6:11:20 AM UTC-8, Ian Davis wrote: > > On Thu, 12 Dec 2019, at 10:27 PM, karth...@gmail.com wrote: > > Specifically, I couldn't find how to partially mock the struct. Most > suggestions rev

[go-nuts] Go 1.14 Beta 1 is released

2019-12-17 Thread Alexander Rakoczy
Hello gophers, We have just released go1.14beta1, a beta version of Go 1.14. It is cut from the master branch at the revision tagged go1.14beta1. Please try your production load tests and unit tests with the new version. Your help testing these pre-release versions is invaluable. The macOS relea

Re: [go-nuts] Locking goroutine to "main" thread

2019-12-17 Thread Alex Buchanan
Yep. My understanding of locking the OS thread from an init() was wrong. I think I have it working now. Thanks guys! On Tue, Dec 17, 2019, at 9:37 AM, Ian Davis wrote: > > > On Sat, 14 Dec 2019, at 7:51 PM, bucha...@gmail.com wrote: >> If I understand correctly, that would prevent me from start

Re: [go-nuts] Locking goroutine to "main" thread

2019-12-17 Thread Ian Davis
On Sat, 14 Dec 2019, at 7:51 PM, bucha...@gmail.com wrote: > If I understand correctly, that would prevent me from starting any other > goroutines. The following program deadlocks: I doesn't prevent you starting other goroutines but you need to ensure that all calls to the OpenGL context are p

[go-nuts] Help get me started on a project

2019-12-17 Thread Rich
I need to write a program that runs an external program and the user needs to interact with that external program. So I know I can do something like this: func main() { cmd := exec.Command("/usr/local/bin/interactiveApp") cmd.Stdin = os.Stdin cmd.Stdout = os.Stdout cmd.Stderr = os.Stderr cmd.R

Re: [go-nuts] runtime.pclntab strippping

2019-12-17 Thread rojer9
i did a quick experiment with getting rid of strings - made cmd/link.ftabaddstr a no-op. that didn't actually save that much: i got rid of all stringtab and it saved about 600K of the original 2.8M pclntab, or 20%, give or take. the remainder compresses to about 800K with xz -9, so there's quite

Re: [go-nuts] runtime.pclntab strippping

2019-12-17 Thread rojer9
running into the same issue: embedded system, fat Go binaries, 20% is the symbol table. +1 for slimming it down, perhaps with full non-stripped version emitted separately to analyze stack traces later (like it's common to keep non-stripped binaries for that reason). is there an issue already for