Hi, I made a bash script that sets up a small go project with the name(s) of my choice that already has a useful basic shape to start with -- an internal package, tests and benchmarking. (I borrowed code from the official set up video and from Daves's Fibonacci example)
I'm happy with the way the bash script works (and you might find it useful too!) but, when I try to translate it into golang, so it's portable and neater, it's not working very well. I get to the stage where I write the first go code file to disk, and then try to use os.cmd to run 'go install' I tried a number of things --- and the GOPATH I set up on the fly looks correct, so does the PATH I modify, but go install is on permanent strike. If I manually cd into the created directory, go install works just fine. Could someone please take a look at give me a hint as to where I'm going wrong here? My repository is here: https://bitbucket.org/siduri-irudis/go-lazy-tools The bash script is called small_go_project_builder.sh <https://bitbucket.org/siduri-irudis/go-lazy-tools/src/a05a0e9866d86bbf3a5d551f2a5b28655cb03e2b/small_go_project_builder.sh?at=master> and the golang version is go_project.go <https://bitbucket.org/siduri-irudis/go-lazy-tools/src/a05a0e9866d86bbf3a5d551f2a5b28655cb03e2b/go_project.go?at=master> I added a comment to the place where I'm stuck into the go version. many thanks, Siduri -- 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 options, visit https://groups.google.com/d/optout.