On Monday, February 27, 2017 at 3:02:24 PM UTC+1, C Banning wrote:
>
> Try organizing your project as:
>
> monimelt
>
> src
>
> cmd (or "monimelt", if there's just one app)
>
> objvalmo
>
> serial 
>
>  
>
>  Then include $HOME/monimelt in your GOPATH.
>
>>
>>  
Thanks for the suggestion.

BTW, I did commit in bbc5c3789788 
<https://github.com/bstarynk/monimelt/commit/bbc5c3789788e507b64776f44f1bc0a698e6e346>
 
the change of using directory names same as package names. So I have 
monimelt/objvalmo/objvalmo.go 
<https://github.com/bstarynk/monimelt/blob/master/objvalmo/objvalmo.go> & 
monimelt/serialmo/serialmo.go 
<https://github.com/bstarynk/monimelt/blob/master/serialmo/serialmo.go> 
files (implementing packages objvalmo & serialmo respectively)

But does that avoid me to have to use long paths in import directives? 
Would that allow me to code import "serialmo" instead of import 
"github.com/bstarynk/monimelt/serialmo" in my file objvalmo.go (to ease the 
forking of my github project)?

Regards

-- 
Basile Starynkevitch <http://starynkevitch.net/Basile/>

-- 
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