Re: [go-nuts] go module & local package

2019-10-10 Thread Henry
Thanks for the reply. It's been helpful. It appears that godoc does not work with go module? Somehow my godoc only documents those packages in my gopath. On Wednesday, October 9, 2019 at 1:07:06 PM UTC+7, Dimas Prawira wrote: > > Let me define this first modules are collections of packages. In

Re: [go-nuts] go module & local package

2019-10-09 Thread Dimas Prawira
Let me define this first modules are collections of packages. In Go 11, I use go modules like the following: If both packages are in the same project, you could just do the following: In go.mod: module github.com/userName/moduleName and inside your

[go-nuts] go module & local package

2019-10-09 Thread Henry
Hi, I am having trouble trying to migrate from gopath to go module. Some of my packages reside in my local machine and are not published. So how do you get go module to import local-machine packages? The second question is that do the dependencies need to use go module as well? Do you need