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

2017-01-11 Thread DM
I have a project structure which looks like below:- session-service _libs //Contains all the external dependencies ... // Other packages Content of _libs looks like below:- github.com golang.org x net gopkg.in My Makefile looks like below:- .PHONY: deploy LOGLEVEL ?= 1

Re: [go-nuts] Golang periodically executing a go routine

2016-12-22 Thread DM
only Done()s its copy. > > go vet should probably complain about that, as it contains an appropriate > marker to not be copied. > > On Wed, Dec 21, 2016 at 10:35 AM, DM <subhara...@gmail.com > > wrote: > >> I am trying write a small golang program which will p

[go-nuts] Golang periodically executing a go routine

2016-12-21 Thread DM
I am trying write a small golang program which will periodically execute lsof -i: to check number of open TCP connections at a port. Code looks like below:- package main import ( "fmt" "log" "os/exec" "strings" "sync" "time" ) type Lsof struct { Command string

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

2016-12-15 Thread DM
I am trying to execute the cgo program as mentioned here package main /* #include "runtime.h" int goId() { return g->goid; } */ import "C" import "fmt" func main() { x := C.goId()

[go-nuts] [go-redis] Relation between PoolTimeout, IdleTimeout & IdleCheckFrequency

2016-12-10 Thread DM
Just cross-posting this from stackoverflow Can someone let me know the relation between PoolTimeout

[go-nuts] Getting error back after executing a shell script via Golang

2016-09-29 Thread DM
Cross-posting this from stackoverflow :- I have a simple shell script (named copy.sh) which looks like below:- #! /bin/sh cp $1 $2 I did chmod 777 copy.sh. I have a golang code which

[go-nuts] Re: [Open sourced] Workflow based REST Api framework - "florest"

2016-09-27 Thread DM
It seems there is a typo in the README Try:- go get github.com/jabong/florest-core/*src*/examples On Tuesday, 27 September 2016 20:17:18 UTC+5:30, parais...@gmail.com wrote: > > Reading the doc , trying to reproduce the instructions : > > go get -u github.com/jabong/florest-core/examples >

[go-nuts] Adding a title in godoc

2016-09-23 Thread DM
I am trying to add a title in my godoc. I have referred godoctricks . My godoc looks like below:- // Package hello-world provides a helloworld example // // Pre-requisites // // * Go 1.5+ // * Linux or MacOS // *

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

2016-09-23 Thread DM
I was going through the *"Go Design Pattern"* talk by Rob Pike. Can some one explain me the doubt I am having in the slide Timeout using Select . In the the video this is the location where it is

[go-nuts] Continous Inspection of Go Code Quality

2016-08-26 Thread DM
Is there any tool available in GoLang for the Continuous Inspection of code quality something similar to SonarQube ? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving

[go-nuts] SetSafe default value in mgo session

2016-08-04 Thread DM
Can someone explain me the difference between the default value of SetSafe() which is {}and SetSafe(nil)? As per the mgo godoc :- If the safe parameter is nil, the session is put in unsafe mode, and writes become fire-and-forget, without

[go-nuts] Connection pooling with xorm and go-mysql

2016-07-20 Thread DM
Just cross-posting this from stackoverflow and github :- I am using xorm 0.4.3 with go-mysql . We are on Golang 1.4. We

[go-nuts] Re: xorm - 4.3 - panic: gob: registering duplicate names

2016-07-17 Thread DM
No. Is this something related to the below issue:- https://groups.google.com/forum/#!topic/golang-nuts/VnFs2Cv0_UY If yes how can I get around this problem in xorm? On Saturday, 16 July 2016 00:09:45 UTC+5:30, DM wrote: > > I am getting the below exception with xorm - 4.3 and golang 1.4.

[go-nuts] net/http: request canceled while waiting for connection

2016-07-12 Thread DM
Hi We making some http PUT calls to a web server using net/http. Some time in the log we are seeing the below errors:- {"level":"error","message":"Put http://blitz:2196/cache/api/v1/buckets/styloko/entities/product-xlarge-multi-sku-de898wa73oooindfas : *read tcp **172.16.84.112:2196*

[go-nuts] go get failing In Mac 10.11.4

2016-06-21 Thread DM
Hi On Mac OS X 10.11.4 *go get* is failing with the below error. jabongs-MacBook-Pro-4:florest debraj$ go get ./... go install github.com/jabong/florest/src/common/config: open /var/folders/lp /3q9_2mn51hd9s4yj_jcf3jxmgp/T/go-build823644730/github.com/jabong/ florest/src/common/config.a: no