[go-nuts] question about modules and VCS

2019-04-01 Thread djadala
Hi, As i understand, go get with modules on does't retrieve history from VCS, only snapshot of requested/calculated version. Is there a way to have full history with modules ? Thanks in advance. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group.

Re: [go-nuts] modules usage help

2019-04-01 Thread T L
On Tuesday, April 2, 2019 at 12:33:41 AM UTC-4, T L wrote: > > > > On Monday, April 1, 2019 at 9:01:28 AM UTC-4, Jakob Borg wrote: >> >> On 1 Apr 2019, at 11:22, T L wrote: >> >> >> How to use this package in vgo mode? >> >> >> go mod init a.b.c/ddd >> go get

Re: [go-nuts] modules usage help

2019-04-01 Thread T L
On Monday, April 1, 2019 at 9:01:28 AM UTC-4, Jakob Borg wrote: > > On 1 Apr 2019, at 11:22, T L > wrote: > > > How to use this package in vgo mode? > > > go mod init a.b.c/ddd > go get github.com/projectcalico/libcalico-go@master > > The problem is that their latest non-prerelease tag is

Re: [go-nuts] Looking for help in debugging CGO failures

2019-04-01 Thread Ian Lance Taylor
On Mon, Apr 1, 2019 at 7:05 PM Charles wrote: > > We're developing a Go wrapper for a C library/database (YottaDB), and use the > CGO interface to call YottaDB C API functions. We're encountering a variety > of failure symptoms about 1% of the time in our test system; some errors we > get

[go-nuts] Looking for help in debugging CGO failures

2019-04-01 Thread Charles
We're developing a Go wrapper for a C library/database (YottaDB), and use the CGO interface to call YottaDB C API functions. We're encountering a variety of failure symptoms about 1% of the time in our test system; some errors we get include: panic: sync: negative WaitGroup counter runtime:

Re: [go-nuts] How to pass http.ResponseWriter while writing test case in Go

2019-04-01 Thread Burak Serdar
The documentation/examples of the net/http/httptest package might help, in particular, the ResponseRecorder. https://golang.org/pkg/net/http/httptest/#ResponseRecorder On Mon, Apr 1, 2019 at 10:51 AM wrote: > > Hi, > > I am writing test cases in golang for one of service used in my

Re: [go-nuts] How to pass http.ResponseWriter while writing test case in Go

2019-04-01 Thread Robert Engels
I wouldn’t test that, test what is producing the response and that it is the correct format. The testing of the encoding if the response is all that is warranted - the other is tested in an integration test. > On Apr 1, 2019, at 8:07 AM, aniruddha.dwiv...@nytimes.com wrote: > > Hi, > > I am

[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-04-01 Thread mail
On Monday, April 1, 2019 at 6:30:23 PM UTC+2, Tristian Azuara wrote: > > Hi Elias, thank you for the quick reply, I see, you're correct it does > support the archs for ios, I had not tried it for ios, because the > documentation just mentions that you can specify specific instruction sets >

[go-nuts] SPIFFE certificate verification (SVID) failure

2019-04-01 Thread dheeraj . gedam
Hi, I am writing a gRPC client for a third party gRPC Server. Certificates issued to both Server and Client are SPIFFE based. These certificates don't have Common Name, and has SPIFFE id in URI SAN field. However, there is an issue while validating the server certificate which leads to

[go-nuts] How to pass http.ResponseWriter while writing test case in Go

2019-04-01 Thread aniruddha . dwivedi
Hi, I am writing test cases in golang for one of service used in my organisation. In one of file, I have below method -- func encodeEdgeResp(_ context.Context, w http.ResponseWriter, response interface{}) error { w.Header().Set("Content-Type", "application/json; charset=utf-8") return

[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-04-01 Thread Tristian Azuara
Hi Elias, thank you for the quick reply, I see, you're correct it does support the archs for ios, I had not tried it for ios, because the documentation just mentions that you can specify specific instruction sets when binding for android: $ gomobile bind --help By default, -target=android

[go-nuts] Re: i got error at log.Printf("Failed to read from pty master: %s", err)

2019-04-01 Thread feihong' yu
server.jscode 'use strict' let app = require('http').createServer(handler) let io = require('socket.io')(app) app.listen(3000) console.log('Listening at http://localhost:3000/') function handler (req, res) { res.writeHead(200) res.end('Testing server for

[go-nuts] Re: i got error at log.Printf("Failed to read from pty master: %s", err)

2019-04-01 Thread feihong' yu
why EOF ?? 在 2019年4月2日星期二 UTC+8上午12:10:10,feihong' yu写道: > > https://github.com/kr/pty/issues/76 > -- 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

[go-nuts] i got error at log.Printf("Failed to read from pty master: %s", err)

2019-04-01 Thread feihong' yu
https://github.com/kr/pty/issues/76 -- 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.com. For more options, visit

[go-nuts] Re: EOF encountered when the server sends commands to execute

2019-04-01 Thread feihong' yu
i got error at log.Printf("Failed to read from pty master: %s", err) 在 2019年4月2日星期二 UTC+8上午12:05:05,feihong' yu写道: > > # server.js > ``` > > 'use strict' > > let app = require('http').createServer(handler) > let io = require('socket.io')(app) > > app.listen(3000) > > console.log('Listening at

[go-nuts] EOF encountered when the server sends commands to execute

2019-04-01 Thread feihong' yu
# server.js ``` 'use strict' let app = require('http').createServer(handler) let io = require('socket.io')(app) app.listen(3000) console.log('Listening at http://localhost:3000/') function handler (req, res) { res.writeHead(200) res.end('Testing server for

Re: [go-nuts] modules usage help

2019-04-01 Thread T L
On Monday, April 1, 2019 at 9:01:28 AM UTC-4, Jakob Borg wrote: > > On 1 Apr 2019, at 11:22, T L > wrote: > > > How to use this package in vgo mode? > > > go mod init a.b.c/ddd > go get github.com/projectcalico/libcalico-go@master > > The problem is that their latest non-prerelease tag is

Re: [go-nuts] modules usage help

2019-04-01 Thread Jakob Borg
On 1 Apr 2019, at 11:22, T L mailto:tapir@gmail.com>> wrote: How to use this package in vgo mode? go mod init a.b.c/ddd go get github.com/projectcalico/libcalico-go@master The problem is that their latest non-prerelease tag is v1.7.3,

[go-nuts] modules usage help

2019-04-01 Thread T L
I created a new project. The main.go file package main import "github.com/projectcalico/libcalico-go/lib/apiconfig" func main() { var _ = aouconfig.LoadClientConfig } The go.mod.file module a.b.c/ddd require github.com/projectcalico/libcalico-go latest go 1.12 Build it: $ go build

Re: [go-nuts] [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-04-01 Thread mail
On Monday, April 1, 2019 at 5:24:29 AM UTC+2, Raffaele Sena wrote: > > While I do find it odd that this project doesn't use github, because > github requires an account, but SourceHut currently also requires to sign > up for an account to submit issues or to submit to the mailing list, I >

Re: [go-nuts] [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-04-01 Thread mail
On Monday, April 1, 2019 at 2:33:52 AM UTC+2, ohir wrote: > > On Sun, 31 Mar 2019 06:16:43 -0700 (PDT) > ma...@eliasnaur.com wrote: > > > Hi, > > I'm very happy to announce the first public release of Gio, a project > for > > writing portable, hardware accelerated, immediate mode GUI

[go-nuts] Re: x/mobile: Feature, add "-target=io/arm,ios/386" and "-nobitcode" to bind command

2019-04-01 Thread mail
Hi, The -target flag does support architectures. Have you tried -target ios/amd64,ios/arm64,ios/arm from your example? I'm not sure I understand the problem with bitcode and macOS; what is the error you get from -fembed-bitcode? - elias On Monday, April 1, 2019 at 6:32:35 AM UTC+2,

[go-nuts] Re: [ANN] Gio: portable immediate mode GUI programs in Go for iOS/tvOS, Android, macOS, Linux, Windows

2019-04-01 Thread fresh . grass . yum
Hi Daniel, Just for reference, I have Weston 6.0 and Goi runs just fine! u@x1 ~> weston -v Date: 2019-04-01 KST [15:02:25.589] weston 6.0.0 https://i.imgur.com/tjV0tJ2.png And, thanks Elias for releasing Gio! It looks like a really interesting project and you've clearly put a lot of thought