A package is just a folder. 
So you may have a repository having multiple packages 
for the same project, 
the project, among others, uses this layout, 
https://golang.org/pkg/ <> https://github.com/golang/go/tree/master/src.

This said, for a go project hosted on github,
you create a dir such as 

mkdir -p $GOPATH/src/github.com/USER/dummy


You ll reference it with

github.com/USER/dummy



might this helps get you started 
https://github.com/mh-cbon/go-get-started


On Tuesday, January 17, 2017 at 4:36:27 AM UTC+1, tahir.us...@gmail.com 
wrote:
>
> I recently set up a Go workspace environment on my Linux machine (running 
> Ubuntu 16.04), and I was able to setup GOPATH successfully, so that any 
> code I write in my src/ folder can be installed and sent to my bin/ folder, 
> and any custom packages I write in src/ (under a new sub-directory) can be 
> sent to a pkg/ folder. 
>
> From here, is there a certain way I can package my code so that if I were 
> to make a project on GitHub, I can pull that project into my workspace, 
> create any custom packages I need for the project, and ship everything out 
> after I take care of dependencies?
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to