[go-nuts] Re: using docker for compiling

2019-02-02 Thread Keith Brown
ernal scripts called (like >> gen-ldflags.sh) and docker build is just invoking "make build" inside >> docker container. I do not use this for CI (GitLab CI is already setup to >> use docker images), so that is why I use latest tag (in CI I use explicit >> ver

[go-nuts] using docker for compiling

2019-01-31 Thread Keith Brown
does anyone use docker golang image to compile? if so,how is your setup? -- 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] slow running job

2018-11-15 Thread Keith Brown
I am running a service (web) type job. It takes 30-40 secs for the job to start up when I do it manually. Is there anything in nomad which will kill the job if it doesn't start in X secs? I am having a strange issue where the job starts up sometimes and sometimes it fails. If I do nomad

Re: [go-nuts] go modules and gocode

2018-11-11 Thread Keith Brown
ithub.com/stamblerre/gocode > > That said, I haven't personally had any luck with that fork either. I > would love to hear from someone who's had success with > gocode/vim-go/modules. > > On Fri, Nov 9, 2018 at 1:03 PM Keith Brown > wrote: > >> Using vim-go >> &g

[go-nuts] go modules and gocode

2018-11-09 Thread Keith Brown
Using vim-go Has anyone gotten gocode (https://github.com/mdempsky/gocode) to work with golang modules? In my GOPATH directory, i see gopath pkg mod cache download github.com But for whatever reason, its not autocompletting the modules. Is there anything else I

Re: [go-nuts] using ginkgo

2018-04-25 Thread Keith Brown
a 202 for a POST/GET etc... On Friday, April 20, 2018 at 8:26:24 AM UTC-4, John Shahid wrote: > > > Keith Brown <keit...@gmail.com > writes: > > > I would like to have a tool for testing infrastructure components. I > > stumbled across Ginkgo. Does anyone use

[go-nuts] using ginkgo

2018-04-19 Thread Keith Brown
I would like to have a tool for testing infrastructure components. I stumbled across Ginkgo. Does anyone use it? Does it need a go compiler for tests? My intention is to write simple tests, "Is server up?". "Does the file contain abc". But I don't want to have the go compiler installed to run

[go-nuts] Re: code structure question

2018-04-18 Thread Keith Brown
nsider putting each ishell.Cmd in a separate file. Otherwise you can put > them in a slice var so you don’t have to AddCmd each one explicitly. > > I’m not sure what defining a struct accomplishes, can you provide more > detail? > > Matt > > On Tuesday, April 17, 2018 at 8:25:

[go-nuts] code structure question

2018-04-17 Thread Keith Brown
I am writing an interactive CLI tool which looks like this, using abisoft/ishell ./tool >>> help Sample Interactive Shell >>> help Commands: clear clear the screen greet greet user exit exit the program help display help >>> greet Someone Somewhere Hello Someone

[go-nuts] projects using net/http

2018-01-26 Thread Keith Brown
Are there any open source projects which use net/http exclusively? I am building something and would like to follow the best practices of a project. I need to visualize a lot of json data in a form of tables/charts. -- You received this message because you are subscribed to the Google Groups

[go-nuts] study go package

2018-01-19 Thread Keith Brown
I want to pick up good practices when developing my go code. Is there a package which I can study and comprehend for newbies? I mainly use effective go but would like to see more examples of good software/code design layout. BTW, in Python I always followed twisted as my examples for testing,

[go-nuts] Re: Having a Model Package

2018-01-17 Thread Keith Brown
is there a page such as "https://github.com/yksz/go-design-patterns; I can refer to for golang design-patterns? I wish there were some official ones, which can help language newbies and give them confidence that what they are doing is the "right way". I understand it depends on the problem but

[go-nuts] ListenAndServ and channels

2018-01-04 Thread Keith Brown
I am trying to Serve a webpage while running a ticker in the background. I am trying to generate a random number, genRandom() , periodically and publish it on a channel so generic() can see the results. I have something like this https://play.golang.org/p/6d1xmqpUYY7 but I don't know how to get

[go-nuts] acceptance test-driven development

2017-12-17 Thread Keith Brown
Are there any tools written in go that are similar to http://robotframework.org/ ? I like Robotframe work because its simple to write test but the downside is I either need python or jre installed to run the tests. This is a burdon. Ideally, it would be great if there was a single binary I

[go-nuts] python remote objects

2017-12-13 Thread Keith Brown
is it possible to analyze python remote objects in go? we have several people using it and i would like to view the calls using go. -- 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

[go-nuts] swagger

2017-12-03 Thread Keith Brown
I am trying to use golang and swagger but I am confused on what package I should use: There is: https://github.com/go-swagger/go-swagger or https://github.com/yvasiyarov/swagger Does anyone use Swagger with go and any tips would be much appreciated. -- You received this message because you

[go-nuts] Re: goroutines with better exceptions

2017-11-05 Thread Keith Brown
sure, in line 16. So, don't continue means I can do this? ch <- Result{500} return On Saturday, November 4, 2017 at 5:26:37 PM UTC-4, Tamás Gulácsi wrote: > > If err!=nil, response is nil, too - so don't continue! -- You received this message because you are subscribed to the Google Groups

[go-nuts] goroutines with better exceptions

2017-11-04 Thread Keith Brown
Hi All Using goroutines to do some load testing on a webserver. I have some code like this, https://play.golang.org/p/e2_ecJN0l4 It works but when the server get overloaded it returns an RSP. I would like to gracefully catch that and put an appropriate status code such as 500. The exact error

[go-nuts] Re: Announcing: Skylark in Go

2017-11-04 Thread Keith Brown
Cool tool. Are there any native golang tools simar to this which work on Windows/Linux/OSX? On Thursday, November 2, 2017 at 9:42:27 PM UTC-4, Ben Hoyt wrote: > > That looks really neat. I will dive into the code! > > I'm very curious how the performance of Skylark in Go compares to Skylark >

[go-nuts] http server request queue

2017-10-28 Thread Keith Brown
Here is a scenario: a high traffic site which executes costly operations (database / filesystem / compute heavy operations). The web server is running standard go/http/server. I would like to handle at most 100 requests and the remainder to queue -- all while the client (curl) is waiting. Are

[go-nuts] studying golang code

2017-08-15 Thread Keith Brown
Coming from Python, I was told to use study Twisted Matrix code 7 years. I haven't regretted it. Take a look at it yourself, http://twistedmatrix.com/documents/16.1.0/core/howto/trial.html . Now, as I learn golang, are there any worth while projects I can use as reference for writing high

Re: [go-nuts] LinkedList implementation

2017-05-13 Thread Keith Brown
ps://github.com/golang/go/commit/01389b966ed81fad6e5fac3e98fe46e162645659 > > On Sat, May 13, 2017 at 6:28 AM, Keith Brown <keith6...@gmail.com> wrote: >> I am learning basic data structures and I chose golang since it provide C >> like pointers. While looking at list.

[go-nuts] Re: NewTicker function example

2017-02-23 Thread Keith Brown
ot; > ) > > func square(x int) int { > return x * x > } > > func cube(x int) int { > return x * x * x > } > > func main() { > ticker := time.NewTicker(5 * time.Second) > > for range ticker.C { > fmt.Println(square(10)) > fmt.Println(cube(10)) > } >

[go-nuts] NewTicker function example

2017-02-22 Thread Keith Brown
Oddly, I can't find a single example on the world wide web for what I am trying to do. I have 2 functions which I want to run on a periodic basis. The functions are square and cube. Here is my code so far. https://play.golang.org/p/akMxcg2Sra But, I am not sure how to schedule these functions.