I am trying to start a simple server for learning Go on my Mac. I was using Yosemite where this worked fine
err := http.ListenAndServe(":8080", nil)
at the console (in the right dir, I double checked)
go run main-1.go
in my Go Code. however with High Sierra I get a huge list of errors of which I have no understanding (still learning). I doubt posting the errors are going to do anything, because hey, look I am still a newb and wouldn't track with the answers anyway.
So is there some basic thing that someone else has run into that solves this, like a setting on my Mac? Like is there some security feature that got added that I can change and so allow my learning to continue?
PS here is the list of errors
goroutine 1 [running]:
runtime.systemstack_switch()
/usr/local/go/src/runtime/asm_amd64.s:216 fp=0xc820147488 sp=0xc820147480
runtime.writebarrierptr_nostore1(0xc82050b4b8, 0xc8200166c0)
/usr/local/go/src/runtime/mbarrier.go:118 +0x71 fp=0xc8201474c0 sp=0xc820147488
runtime.writebarrierptr(0xc82050b4b8, 0xc8200166c0)
/usr/local/go/src/runtime/mbarrier.go:137 +0x4b fp=0xc8201474f0 sp=0xc8201474c0
go/token.(*FileSet).AddFile(0xc82050ac80, 0xc8201128a0, 0x22, 0x923, 0x104, 0x0)
/usr/local/go/src/go/token/position.go:380 +0x2d5 fp=0xc820147580 sp=0xc8201474f0
go/parser.(*parser).init(0xc820536000, 0xc82050ac80, 0xc8201128a0, 0x22, 0xc82008c600, 0x104, 0x200, 0x6)
/usr/local/go/src/go/parser/parser.go:74 +0x4c fp=0xc8201475d0 sp=0xc820147580
go/parser.ParseFile(0xc82050ac80, 0xc8201128a0, 0x22, 0x3e2e20, 0xc82000d160, 0x6, 0x0, 0x0, 0x0)
/usr/local/go/src/go/parser/interface.go:116 +0x199 fp=0xc820147640 sp=0xc8201475d0
go/build.(*Context).Import(0x7a6860, 0xc82050e391, 0x2, 0xc8204e0840, 0x15, 0x4, 0x0, 0x0, 0x0)
/usr/local/go/src/go/build/build.go:679 +0x2597 fp=0xc8201480d8 sp=0xc820147640
main.loadImport(0xc82050e391, 0x2, 0xc8204e0840, 0x15, 0xc8204c3800, 0xc8201498c0, 0xc820514280, 0x2, 0x2, 0x1, ...)
/usr/local/go/src/cmd/go/pkg.go:344 +0x687 fp=0xc8201483a0 sp=0xc8201480d8
main.(*Package).load(0xc8204c3800, 0xc8201498c0, 0xc820399200, 0x0, 0x0, 0x4)
/usr/local/go/src/cmd/go/pkg.go:899 +0x42e1 fp=0xc820148c00 sp=0xc8201483a0
main.loadImport(0xc82015bf31, 0x3, 0xc82015e5a0, 0x2a, 0xc820160c00, 0xc8201498c0, 0xc82015e8a0, 0x1, 0x1, 0x1, ...)
/usr/local/go/src/cmd/go/pkg.go:374 +0xd67 fp=0xc820148ec8 sp=0xc820148c00
main.(*Package).load(0xc820160c00, 0xc8201498c0, 0xc820172600, 0x0, 0x0, 0x0)
/usr/local/go/src/cmd/go/pkg.go:899 +0x42e1 fp=0xc820149728 sp=0xc820148ec8
main.goFilesPackage(0xc82000a2f0, 0x1, 0x1, 0x8)
/usr/local/go/src/cmd/go/build.go:750 +0x836 fp=0xc820149a50 sp=0xc820149728
main.runRun(0x79fe80, 0xc82000a2f0, 0x1, 0x1)
/usr/local/go/src/cmd/go/run.go:87 +0x479 fp=0xc820149c40 sp=0xc820149a50
main.main()
/usr/local/go/src/cmd/go/main.go:181 +0x782 fp=0xc820149f30 sp=0xc820149c40
runtime.main()
/usr/local/go/src/runtime/proc.go:111 +0x2b0 fp=0xc820149f80 sp=0xc820149f30
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1 fp=0xc820149f88 sp=0xc820149f80
goroutine 17 [syscall, locked to thread]:
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1696 +0x1
goroutine 5 [syscall]:
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:22 +0x18
created by os/signal.init.1
/usr/local/go/src/os/signal/signal_unix.go:28 +0x37