If you use `127.0.0.1:0` as your listening address then the firewall won't trigger as well.
On Saturday, 7 November 2020 at 15:20:06 UTC+2 Aleistar Markóczy wrote: > I may not be "using go run as a development tool" (which I would deem a > perfectly fine reason to use "go run", I mean what else would you use it > for, maybe to run on production? ;-) ) but the same happens when running go > test to run tests while creating a server to run the tests on. > > The trick of opening the port works perfectly file, thanks! Just open the > windows Firewall Settings > Advanced Settings > Inbound Rules > New Rule > > By Port. > > On Wednesday, 11 February 2015 at 15:38:53 UTC+1 ni...@craig-wood.com > wrote: > >> On 11/02/15 10:13, Mateusz Czapliński wrote: >> > Or, I believe "go build && myappname.exe" (as mentioned by Egon too) is >> > on par with go install, with the small difference between the two (i.e. >> > location of the resulting executable) left up to personal >> > choice/preference/needs. >> >> If you have a big project you'll notice the difference in speed between >> go build and go install. It is especially noticeable if you have >> modified code in a package which you are not typing go build for - that >> has to be rebuilt every time. >> >> In my 25,000 line project split over 50+ files it takes about 2 seconds >> for a cold build, but only 0.6s for a go install after that cold build. >> go install speeds up subsequent go builds. >> >> .../src/github.com/ncw/myproject$ rm -rf >> ~/go/pkg/linux_amd64/github.com/ncw/myproject >> .../src/github.com/ncw/myproject$ time go build >> >> real 0m1.972s >> user 0m1.796s >> sys 0m0.237s >> >> .../src/github.com/ncw/myproject$ time go build >> >> real 0m2.004s >> user 0m1.797s >> sys 0m0.255s >> >> .../src/github.com/ncw/myproject$ time go install >> >> real 0m1.955s >> user 0m1.809s >> sys 0m0.210s >> >> .../src/github.com/ncw/myproject$ time go install >> >> real 0m0.614s >> user 0m0.531s >> sys 0m0.085s >> >> .../src/github.com/ncw/myproject$ time go build >> >> real 0m0.960s >> user 0m0.864s >> sys 0m0.080s >> >> -- >> Nick Craig-Wood <ni...@craig-wood.com> -- http://www.craig-wood.com/nick >> > -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/fe36826a-1187-4f26-b030-f208497b8fe5n%40googlegroups.com.