Learning Go on internal server

102 views
Skip to first unread message

Rich

unread,
Feb 16, 2023, 11:48:39 AM2/16/23
to golang-nuts
So, I've been writing go code for my company, and many have expressed an interest in learning Go. So what I want to do is create a learning environment for them on one of our 'tools' servers. The problem is that the tools server doesn't have good connectivity to the internet. So using go mod to download packages doesn't work. Is there a place I can download the package, put it on the server in a shared location so that go mod can pick up that it's already available?

Thanks,

Chris Burkert

unread,
Feb 16, 2023, 3:19:41 PM2/16/23
to Rich, golang-nuts
Go can be run on a regular Mac or PC. Maybe you don’t need a tools server for this at all.

However, in a corporate environment caching dependencies may be a good thing. With modules this is done by running your own Go proxy. Take a look at  or

Rich <rma...@gmail.com> schrieb am Do. 16. Feb. 2023 um 17:48:
So, I've been writing go code for my company, and many have expressed an interest in learning Go. So what I want to do is create a learning environment for them on one of our 'tools' servers. The problem is that the tools server doesn't have good connectivity to the internet. So using go mod to download packages doesn't work. Is there a place I can download the package, put it on the server in a shared location so that go mod can pick up that it's already available?

Thanks,

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/64642177-5c5c-41d8-b508-66318e429276n%40googlegroups.com.

Rich

unread,
Feb 17, 2023, 12:52:11 PM2/17/23
to golang-nuts
Thanks Chris -- I've always run it from my mac, cross compile to Windows / Linux super easy, but many don't even have administrator rights to install it on their windows PC. I'll look into those proxies, but in general everything inside the company runs through corporate proxy servers, which isn't easy to get to from our tools servers.  Maybe I'll just turn off Go mod.
Reply all
Reply to author
Forward
0 new messages