[go-nuts] Using nested vendor directories in go 1.7

2017-01-12 Thread Debraj Manna
I have a go project having the following packages:- go list ./... | grep -v /vendor/ github.com/jab/JSes github.com/jab/JSes/src/common/config github.com/jab/JSes/src/common/logger github.com/jab/JSes/src/common/monitor github.com/jab/JSes/src/handlers/healthcheck github.com/jab/JSes/src/handlers

Re: [go-nuts] Resolving 'cannot find package' error with vendor in go 1.7

2017-01-12 Thread Debraj Manna
This has been discussed further in stackoverflow . On Wed, Jan 11, 2017 at 4:46 PM, DM wrote: > I have a project structure which looks like below:- > > session-service > _libs //Contains

Re: [go-nuts] Re: cgo - 'runtime.h' file not found in MacOSX

2016-12-15 Thread Debraj Manna
Actually that is my problem changing all functions to pass on the context. On 15-Dec-2016 6:51 pm, "Gulácsi Tamás" wrote: > Debraj Manna ezt írta (időpont: 2016. dec. > 15., Cs, 14:12): > > If I get you correctly I still have to pass the Context (with logger > attac

Re: [go-nuts] Re: cgo - 'runtime.h' file not found in MacOSX

2016-12-15 Thread Debraj Manna
- for example you can pass your Context (or just > the logger) through a channel to another (worker) goroutine, and won't lose > context information. > > Debraj Manna ezt írta (időpont: 2016. dec. > 15., Cs, 13:58): > >> Exactly for the same use case as mentioned in th

Re: [go-nuts] Re: cgo - 'runtime.h' file not found in MacOSX

2016-12-15 Thread Debraj Manna
Exactly for the same use case as mentioned in this thread https://groups.google.com/forum/#!msg/golang-nuts/zuWWBHKn6iw/FKjTGPItzcYJ On Thu, Dec 15, 2016 at 5:44 PM, Tamás Gulácsi wrote: > 2016. december 15., csütörtök 12:51:28 UTC+1 időpontban DM a következőt > írta: >> >> I am trying to execu

[go-nuts] Using EasyJSON with Golang

2016-11-14 Thread Debraj Manna
Crossposting this from stackoverflow :- Let's say I have a struct like below:- //easyjson:json type JSONData struct { Data []string} I want to un-marshal the below json to JSONData struct {"Data" : ["One", "Two", "Three

[go-nuts] Refer a different package from the godoc of a package

2016-09-24 Thread Debraj Manna
Can someone let me if it is possible to refer a different package from godoc of a package? For example let's say I have a package src/logger/. In src/logger/doc.go I need to refer src/config/. Something like @see in javadoc. Is there a recommended way? I am on Go 1.7. -- You received this messa

Re: [go-nuts] Timeout using Select from "Go Design Pattern"

2016-09-23 Thread Debraj Manna
Thanks Sam for the reply. If I get you correctly then the entire loop will run for 1 second right because after 1second then time.After will return the current time on the channel and the function will return. On Sep 23, 2016 7:43 PM, "Sam Whited" wrote: On Fri, Sep 23, 2016 at 6:24 AM, DM wro

Re: [go-nuts] SetSafe default value in mgo session

2016-08-05 Thread Debraj Manna
Yeah I already asked it in mgo-users forum . I did not get any response from there. So asked it in this forum as I saw quite a few mgo related discussion in golang-nuts

Re: [go-nuts] SetSafe default value in mgo session

2016-08-04 Thread Debraj Manna
I know this. I am asking about the functionality of the mgo driver while calling SetSafe(nil) & SetSafe(&Safe{})? How mgo will behave in both the cases while doing a write to Mongo? On Fri, Aug 5, 2016 at 11:09 AM, Kiki Sugiaman wrote: > &Safe{} gives you a pointer to a new instance of Safe with

Re: [go-nuts] SetSafe default value in mgo session

2016-08-04 Thread Debraj Manna
Can someone help me in clearing my doubts? On Aug 4, 2016 4:36 PM, "DM" wrote: > Can someone explain me the difference between the default value of > SetSafe() which is &Safe{}and SetSafe(nil)? > > As per the mgo godoc :- > > If the safe paramet

Re: [go-nuts] go get failing In Mac 10.11.4

2016-06-22 Thread Debraj Manna
Thanks Krzysztof that was the issue. For cloning the repo I used:- git clone https://github.com/jabong/florest/ So in mac my code checked out in a directory florest. But the actual repo name was https://github.com/jabong/floRest/ and in code it was referenced as floRest which was causing the issu

Re: [go-nuts] go get failing In Mac 10.11.4

2016-06-21 Thread Debraj Manna
Below is the ouput using the -x flag:- jabongs-MacBook-Pro-4:florest debraj$ go get -x ./... WORK=/var/folders/lp/3q9_2mn51hd9s4yj_jcf3jxmgp/T/go-build665863426 mkdir -p $WORK/github.com/jabong/floRest/src/examples/_obj/ mkdir -p $WORK/github.com/jabong/floRest/src/ cd /Users/debraj/golang