Post 451900 by sir@cmpwn.com
 (DIR) More posts by sir@cmpwn.com
 (DIR) Post #451656 by sangy@chaos.social
       2018-10-09T15:01:56Z
       
       0 likes, 0 repeats
       
       et tu @sir ? https://drewdevault.com/2018/10/08/Go-1.11.htmlI don't think the $GOPATH problem is solved when you can't make simple main() function for a sketch outside of it...
       
 (DIR) Post #451657 by sir@cmpwn.com
       2018-10-09T19:43:20Z
       
       0 likes, 0 repeats
       
       @sangy but you can?
       
 (DIR) Post #451673 by sangy@chaos.social
       2018-10-09T19:44:52Z
       
       0 likes, 0 repeats
       
       @sir I read about modules. The process was about as annoying as doing $GOPATH trickery just to make a hello world or to test a function. Is there anything besides them?I'm specifically thinking of this guide: https://roberto.selbach.ca/intro-to-go-modules/
       
 (DIR) Post #451704 by sir@cmpwn.com
       2018-10-09T19:46:23Z
       
       0 likes, 0 repeats
       
       @sangy $ cd /tmp$ cat hello.gopackage mainfunc main() {println("Hello world")}$ go build hello.go$ ./helloHello world
       
 (DIR) Post #451716 by sir@cmpwn.com
       2018-10-09T19:47:07Z
       
       0 likes, 0 repeats
       
       @sangy when you actually need modules, just `touch mod.go` and the rest just werks
       
 (DIR) Post #451733 by sangy@chaos.social
       2018-10-09T19:47:35Z
       
       0 likes, 0 repeats
       
       @sir huh what? that's very nice!
       
 (DIR) Post #451750 by sir@cmpwn.com
       2018-10-09T19:47:48Z
       
       0 likes, 0 repeats
       
       @sangy assuming you're in a git repo, if not then just stick a comment on your package main like `package main # example.org/my-package` which lets you use example.org/my-package as the namespace for importing your shit
       
 (DIR) Post #451782 by sangy@chaos.social
       2018-10-09T19:50:52Z
       
       0 likes, 0 repeats
       
       @sir This is super helpful, as I've been having to write go lately for a k8s admission controller and I've been having to sketch things often. Any recommended docs besides the official ones? :)
       
 (DIR) Post #451851 by sir@cmpwn.com
       2018-10-09T19:54:25Z
       
       0 likes, 0 repeats
       
       @sangy the official ones
       
 (DIR) Post #451856 by sangy@chaos.social
       2018-10-09T19:54:58Z
       
       0 likes, 0 repeats
       
       @sir fair enough. I still hate that godoc is a thing, and that there are no manpages for the cli tools ;/
       
 (DIR) Post #451900 by sir@cmpwn.com
       2018-10-09T19:59:05Z
       
       0 likes, 0 repeats
       
       @sangy godoc is fine