You are viewing a single comment's thread from:

RE: Building a Blockchain with Go - Go Modules and a Basic Blockchain - Part 1

in #utopian-io6 years ago (edited)

Hi, got a couple of questions:

  • Is there any shorthand like go mod init github:tensor/gochain or just go mod init tensor/gochain?
  • Is rsc.io is some kind of registry (like npm) that was recommended by golang community?
Sort:  

There is no shorthand as of yet for the module system, though if you already have github initialized, it will automatically fill in the module name and match it with the name of your remote repository. So, I could have typed in go mod init and it would have added the github.com/tensor-programming/go-blockchain part by itself.

rsc.io is just a set of packages that I was using. The registry for go is called go-doc: https://godoc.org/