You are viewing a single comment's thread from:
RE: Building a Blockchain with Go - Go Modules and a Basic Blockchain - Part 1
Hi, got a couple of questions:
- Is there any shorthand like
go mod init github:tensor/gochainor justgo mod init tensor/gochain? - Is rsc.io is some kind of registry (like npm) that was recommended by golang community?
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 initand it would have added thegithub.com/tensor-programming/go-blockchainpart 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/