Live data from Hacker News

Stages of learning Go, with code examples

sourcegraph.com

1–10 of 118 posts

Re: Stages of learning Go, with code examples

#5
Just wondering, does Go finally has a package manager with proper versioning of modules?

Edit: Somebody is heavily downvoting me on every reply, I would love to know why. I like Go and want to get into it since a few months but the missing package manager held me off. So what is wrong about my question?

Re: Stages of learning Go, with code examples

#6
post #5

Just wondering, does Go finally has a package manager with proper versioning of modules? Edit: Somebody is heavily downvoting me on every reply, I would love to know why. I like Go and want to get into it since a few months but the missing package manager held me off. So what is wrong about my question?

The closest is godep, which lets you take snapshots.

We're having lots of fun with this with Prometheus, quite a bit of work is ongoing to get it into Debian due to this for example.

Re: Stages of learning Go, with code examples

#7
post #6
post #5

Just wondering, does Go finally has a package manager with proper versioning of modules? Edit: Somebody is heavily downvoting me on every reply, I would love to know why. I like Go and want to get into it since a few months but the missing package manager held me off. So what is wrong about my question?

The closest is godep, which lets you take snapshots. We're having lots of fun with this with Prometheus, quite a bit of work is ongoing to get it into Debian due to this for example.

And do these package managers provide a full ecosystem where all Go libraries/modules are available like e.g. npm does?

Re: Stages of learning Go, with code examples

#8
post #7
post #6

Earlier quoted context omitted.

The closest is godep, which lets you take snapshots. We're having lots of fun with this with Prometheus, quite a bit of work is ongoing to get it into Debian due to this for example.

And do these package managers provide a full ecosystem where all Go libraries/modules are available like e.g. npm does?

All Go packages can be found on godoc.org Installed with "go get" And if you want to vendor the dependencies use godep.

Re: Stages of learning Go, with code examples

#9
post #8
post #7

Earlier quoted context omitted.

And do these package managers provide a full ecosystem where all Go libraries/modules are available like e.g. npm does?

All Go packages can be found on godoc.org Installed with "go get" And if you want to vendor the dependencies use godep.

Thanks. And how can I define the version of the module which should be imported?

Re: Stages of learning Go, with code examples

#10
post #9
post #8

Earlier quoted context omitted.

All Go packages can be found on godoc.org Installed with "go get" And if you want to vendor the dependencies use godep.

Thanks. And how can I define the version of the module which should be imported?

https://github.com/tools/godep/blob/master/Readme.md explains it.

It's not really a package manager, though you can get some of the same results. It's more pulling in exact build dependencies.

Post reply on HN