[go-nuts] Code coverage for a project

2019-01-08 Thread durgasomeswararao532
Hi, I have creates all my test files in a separate single folder. Is it possible to get code coverage as the source files are in different location not with test files. I am getting code coverage report with coverprofile when test files and source are in same location. Here I was running all

[go-nuts] Wuffs: a new, memory-safe programming language

2019-01-08 Thread Nigel Tao
Spun out of the "C++ 11 to Golang convertor" thread... On Mon, Jan 7, 2019 at 12:27 AM Eric S. Raymond wrote: > Perry and I have two different target languages in mind. Perry's > target language is basically a repaired C - type-safe, almost > upward-compatible. He and I have the same strategic

[go-nuts] Can I say that a pointer is a reference or memory address to a value?

2019-01-08 Thread 伊藤和也
Can I say that a pointer is a reference or memory address to a value? -- 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.

[go-nuts] Embedded files with WebAssembly

2019-01-08 Thread Tamás Gulácsi
rakyll/statik is another simple file embedding solution. -- 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

[go-nuts] Improving build times (for development) with go 1.11

2019-01-08 Thread hasan . abdul-rahman
I'm using go 1.11.2 and the build time for a small project (less than 10k LOC) is about 2 seconds when I just run `go build main.go` I tried searching online for tips and tricks to improve compile times, but most advice is outdated. For example, some people recommend passing '-i' or

[go-nuts] Embedded files with WebAssembly

2019-01-08 Thread Scott Pakin
I just started playing with WebAssembly, and I realize I don't know how to work with files. For C, the Emscripten compiler apparently supports embedding files into a virtual file system. Does the go command provide an equivalent when generating .wasm files? Should I use Packr

Re: [go-nuts] Github independent issue tracker

2019-01-08 Thread Dan Kortschak
My suspicion is that using the email reply would require that the correspondent be a GitHub user (possibly even a GitHub user subscribed to the issue). This would not be the case for Jan with a bot having filed the issue by proxy. In that case he probably would not even have received any email

[go-nuts] Re: Go list returning directory starting with underscore on Ubuntu

2019-01-08 Thread tatsuya . suzuki
I don't know it helps as I'm on zshell. I replaced `GOPATH=~/works/golang` with `export GOPATH=~/works/golang`. then, it fixed. Before % go list ./server/... _/Users/myuser/works/golang/src/mattermost-plugin-dialect/src/server After % go list ./server/...

[go-nuts] gotcha: don't take the address of a for-range loop variable

2019-01-08 Thread K Davidson
You could also do: https://play.golang.org/p/zjNVeQNbCq5 -- 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

Re: [go-nuts] Q: Moveable stacks and runtime.LockOSThread

2019-01-08 Thread Ian Lance Taylor
On Tue, Jan 8, 2019 at 4:56 AM Jan Mercl <0xj...@gmail.com> wrote: > > When an ordinary goroutine (not a CGo call into C) executes > runtime.LockOSThread, does its stack become the OS thread stack? In > particular, I'm interested if that guarantees fixed (pinned) pointers > pointing into the

[go-nuts] Patch method

2019-01-08 Thread afriyie . abraham
Hi, Am new in Go programming and need help to write a PATCH method for my go-server. my data field look like these type NFProfile struct { NFType string `json:"nftype"` NFInstanceID string `json:"instanceid"` NFStatus string `json:"nfstatus"` ID string `json:"id"` }

[go-nuts] Re: Github independent issue tracker

2019-01-08 Thread peterGo
Jan Mercl, "There's also that OpenID thing." OpenID may not be a good idea. Stack Exchange: Support for OpenID ended on July 25, 2018: https://meta.stackexchange.com/questions/307647/support-for-openid-ended-on-july-25-2018 Peter On Tuesday, January 8, 2019 at 4:25:39 AM UTC-5, Jan Mercl

[go-nuts] `gcloud app deploy` command choosing the wrong GOPATH

2019-01-08 Thread aniruddha . dwivedi
I am Using go1.11.4 for postgres connection and strictly using GAE standard. My app.yaml is as below- runtime: go111 service: alerting-postgre-service-ad In my main.go my imports are as below- package main import ( "database/sql" "encoding/json" "fmt" "log"

[go-nuts] Q: Moveable stacks and runtime.LockOSThread

2019-01-08 Thread Jan Mercl
When an ordinary goroutine (not a CGo call into C) executes runtime.LockOSThread, does its stack become the OS thread stack? In particular, I'm interested if that guarantees fixed (pinned) pointers pointing into the stack. If the real OS thread stack is used then that should work, I guess, but I'd

Re: [go-nuts] Re: What are the reasonable reasons to use pointers?

2019-01-08 Thread Victor Giordano
i'm happy to see people sharing bugs and code alike!! :D El lun., 7 ene. 2019 a las 22:31, Michael Jones () escribió: > I am honored to have shared a bug with Rob Pike. > > On Mon, Jan 7, 2019 at 3:36 PM Rob Pike wrote: > >> I think every Fortran programmer has a version of that story. Mine >>

Re: [go-nuts] Github independent issue tracker

2019-01-08 Thread Sebastien Binet
On Tue, Jan 8, 2019 at 12:04 PM Jakob Borg wrote: > On 8 Jan 2019, at 11:11, Jan Mercl <0xj...@gmail.com> wrote: > > > But the most important thing is that no one is suggesting "eschewing > GitHub". The topic of this thread was listed in the OP: How to make it > easy/easier for people without a

Re: [go-nuts] Github independent issue tracker

2019-01-08 Thread Jakob Borg
On 8 Jan 2019, at 11:11, Jan Mercl <0xj...@gmail.com> wrote: But the most important thing is that no one is suggesting "eschewing GitHub". The topic of this thread was listed in the OP: How to make it easy/easier for people without a MS account to contribute to the

[go-nuts] Re: how to get data https://uinames.com/ Picture and name

2019-01-08 Thread pdbw58107
I will pratice web scraping get data from website insert to database i don't know solution เมื่อ วันอังคารที่ 8 มกราคม ค.ศ. 2019 16 นาฬิกา 57 นาที 36 วินาที UTC+7, pdbw...@gmail.com เขียนว่า: > > [image: Screen Shot 2019-01-08 at 4.57.27 PM.png] > > how to get data https://uinames.com/

Re: [go-nuts] Github independent issue tracker

2019-01-08 Thread Jan Mercl
On Tue, Jan 8, 2019 at 10:35 AM Jakob Borg wrote: > I hesitate to get involved in this discussion at all, but the world view where a Google tied identity is acceptable but a GitHub one is not, is somewhat foreign to me. I have both kinds and I’m not particularly > affected by the outcome, but I

Re: [go-nuts] how to get data https://uinames.com/ Picture and name

2019-01-08 Thread Aldrin Leal
Did you check their github repo? https://github.com/thm/uinames -- -- Aldrin Leal, / https://ingenieux.io/about/ On Tue, Jan 8, 2019 at 4:57 AM wrote: > [image: Screen Shot 2019-01-08 at 4.57.27 PM.png] > > how to get data https://uinames.com/ Picture and name insert to database > > -- >

[go-nuts] how to get data https://uinames.com/ Picture and name

2019-01-08 Thread pdbw58107
[image: Screen Shot 2019-01-08 at 4.57.27 PM.png] how to get data https://uinames.com/ Picture and name insert to database -- 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,

Re: [go-nuts] Github independent issue tracker

2019-01-08 Thread Jakob Borg
On 8 Jan 2019, at 10:25, Jan Mercl <0xj...@gmail.com> wrote: Wrt the acceptable identity, I think one of the options is a GMail/Google account I hesitate to get involved in this discussion at all, but the world view where a Google tied identity is acceptable but a

[go-nuts] Github independent issue tracker

2019-01-08 Thread Jan Mercl
In the thread "Go 1.12 Beta 1 is released", Ian Lance Taylor wrote : > > *: It would be nice if the Go team could possibly figure out some way > > how to make it easier to use input from people willing to participate > > in the