[go-nuts] Issue with golang.design/x/clipboard

2024-03-09 Thread Arie van Wingerden
See my code attached! My issue is that, after writing to the clipboard, I can only read the string I wrote back during the period I "sleep" after the write. If I do not sleep, the clipboard immediately reverts to "empty". Am I doing something wrong here? TIA Arie -- You received this message

Re: [go-nuts] Re: Getting Gobot package fails

2019-09-24 Thread Arie van Wingerden
Thx, that worx! Op zo 22 sep. 2019 om 23:41 schreef Amnon Baron Cohen : > try go get -u github.com/hybridgroup/gobot > > and change the import paths in your program. > > > On Sunday, 22 September 2019 16:14:48 UTC+1, Arie van Wingerden wrote: >> >> When I issue

[go-nuts] Re: Getting Gobot package fails

2019-09-22 Thread Arie van Wingerden
Sorry for double post. My home network didn't work well this afternoon ... -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.co

[go-nuts] Getting Gobot package fails

2019-09-22 Thread Arie van Wingerden
When I issue this command (as instructed on Gobot site): go get -d -u gobot.io/x/gobot/... I get this message: package gobot.io/x/gobot/...: unrecognized import path "gobot.io/x/gobot" (https fetch: Get http://gobot.io/x/gobot/?go-get=1: redirected from secure URL https://gobot.io/x/go

[go-nuts] Getting Gobot package fails

2019-09-22 Thread Arie van Wingerden
When I issue this command (as instructed on Gobot site): go get -d -u gobot.io/x/gobot/... I get this message: package gobot.io/x/gobot/...: unrecognized import path "gobot.io/x/gobot" (https fetch: Get http://gobot.io/x/gobot/?go-get=1: redirected from secure URL https://gobot.io/x/go

Re: [go-nuts] Is there something similar to cmp in python?

2018-01-21 Thread Arie van Wingerden
https://golang.org/src/strings/compare.go 2018-01-21 14:42 GMT+01:00 Peng Yu : > Hi, cmp() in python can return three values -1, 0, 1. Is there a > comparison function in golang that also return three values? Thanks. > > https://docs.python.org/2/library/functions.html#cmp > > -- > Regards, > Pen

Re: [go-nuts] Request for very simple cgo example to check compiler environment

2017-02-01 Thread Arie van Wingerden
Thx Ian. That nails it. Compiler setup seems to be ok! Now I'll try and find reason for the errors in the other cgo project. THX! 2017-02-01 16:08 GMT+01:00 Ian Lance Taylor : > On Wed, Feb 1, 2017 at 6:57 AM, Arie van Wingerden > wrote: > > In another thread I asked for

[go-nuts] Request for very simple cgo example to check compiler environment

2017-02-01 Thread Arie van Wingerden
In another thread I asked for help with Mingw64. Following Andrew Gerrands advice I now have installed TDM-GCC-64. Still I get errors when compiling a quite big project of someone else. But I am not sure whether that is because of wrong (gcc) compiler setup on my side or of the project itself. Ca

Re: [go-nuts] Re: Wrestling with Mingw64 on Windows

2017-02-01 Thread Arie van Wingerden
ft0z8ICo > > I installed TDM-GCC, and then Go. See the discussion there. > > Tim > > > > On Tuesday, 31 January 2017 02:32:34 UTC+11, Arie van Wingerden wrote: >> >> I try to use CGO on Windows >> >> I installed Mingw64 from here: >>https:

Re: [go-nuts] Re: Wrestling with Mingw64 on Windows

2017-01-30 Thread Arie van Wingerden
for info on that flag I found this: >> http://stackoverflow.com/questions/34890796/m64-and-m32-flags/34891019 >> which is the same error that you are getting. >> Install and use x86_64-w64-mingw32 if you can, I installed it through >> cygwin on my system and cgo just works. >

Re: [go-nuts] Re: Wrestling with Mingw64 on Windows

2017-01-30 Thread Arie van Wingerden
arily move gcc.exe where cgo can't find it and > try to compile again. > > > On Monday, January 30, 2017 at 4:32:34 PM UTC+1, Arie van Wingerden wrote: >> >> I try to use CGO on Windows >> >> I installed Mingw64 from here: >>https://sourceforge

Re: [go-nuts] Wrestling with Mingw64 on Windows

2017-01-30 Thread Arie van Wingerden
2017-01-30 12:04 GMT+01:00 Arie van Wingerden : > set PATH=%GOROOT%\%MINGWPATH%\bin;%PATH% > typo: ​should be: set PATH=%GOROOT%\bin;%MINGWPATH%;%PATH%​ behavior further as described -- You received this message because you are subscribed to the Google Groups "golang-nuts

[go-nuts] Wrestling with Mingw64 on Windows

2017-01-30 Thread Arie van Wingerden
I try to use CGO on Windows I installed Mingw64 from here: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Automated%20Builds/ My Go env vars are like so: set CC=i686-w64-mingw32-gcc.exe set GOROOT=e:\programs\go64 set GOPATH=e:\src\go set GOOS=wi

Re: [go-nuts] Re: FPDF question (jung-kurt)

2016-11-12 Thread Arie van Wingerden
Hi Kurt, of course it is all in the docs (slapping my head) RTFM! Thanks for the help and the great package! Now I have a working project which saves me an hour each time I need to do that task. So, I am *very* grateful! Best wishes, Arie 2016-11-12 3:34 GMT+01:00 Kurt Jung : > when I use Ad

[go-nuts] FPDF question (jung-kurt)

2016-11-11 Thread Arie van Wingerden
Hi, when I use AddFont I need a font specification in JSON format. But I really have no idea what should go in such a JSON file. I had this: pdf.AddFont("Ravie", "B", "c:\\windows\\fonts\\RAVIE.TTF") which is obviously wrong, since it only points to the font location in Windows. Any help ap

Re: [go-nuts] Problem with PDF generation with github.com/jung-kurt/gofpdf

2016-09-21 Thread Arie van Wingerden
Thx Ed, Ln() is exactly what I need! 2016-09-21 12:51 GMT+02:00 Ed Pelc : > Well adding some code would help. But generally there is a ln variable you > need to set to 1 to break the line. > > Your really need to read the docs carefully to get what you want with > gofpdf. Most of the info is ther

[go-nuts] Problem with PDF generation with github.com/jung-kurt/gofpdf

2016-09-21 Thread Arie van Wingerden
Hi, I have started using https://godoc.org/github.com/jung-kurt/gofpdf So far I can get some output, but everything is overlapping each other at the start of the page. I am using Cell or Text for writing a line of output. How can I advance to the next physical "row" (line) in the output page?

Re: [go-nuts] Sorting slice of structs

2016-09-21 Thread Arie van Wingerden
o make is. Change it to >> Courses, ie. >> >> courses := make(Courses, maxrow) >> >> On Tue, Sep 20, 2016, 19:44 Arie van Wingerden wrote: >> >>> Hi, >>> >>> Still a beginner ... first take at a bit more difficult thing. >>> >

[go-nuts] Sorting slice of structs

2016-09-20 Thread Arie van Wingerden
Hi, Still a beginner ... first take at a bit more difficult thing. I cannot get this https://play.golang.org/p/qgBLH0r_vq to work. Compiler says: cannot use courses (type []Course) as type sort.Interface in argument to sort.Sort: []Course does not implement sort.Interface (missing Len me