Re: [go-nuts] Go-path from a source other than $GOPATH (and package management)

2018-04-20 Thread unknown
You can use direnv[1] to achieve what you want [1]: https://direnv.net/ -- 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

Re: [go-nuts] using ginkgo

2018-04-20 Thread unknown
Keith Brown writes: > I would like to have a tool for testing infrastructure components. I > stumbled across Ginkgo. Does anyone use it? Yes, it is being used by multiple CloudFoundry projects [1] > Does it need a go compiler for tests? Yes. > My intention is to write simple tests, "Is serve

[go-nuts] Randomizing contents of a file

2016-09-20 Thread Unknown User
Hi All, I am trying to print the contents of a file randomizing the lines. The following code works, but does not exit even after all the lines are read. What needs to be done to correct it? package main import( "fmt" "bufio" "os" "math/rand" "time" ) func main() { fil