Hi all,
I was confused that why golang do not support referencing local package.
eg: import "./local2" //error: local import "./local2" in non-local package
I have upload a test project here:
https://github.com/vipally/localpackage

Here is my trouble:
My project path is: github.com/vipally/localpackage The local package 
reference relation is: main <- local2 <- local1 In "main.go" use such to 
reference local package local2: import 
"github.com/VIPALLY/localpackage/local2" Someone who forked this projcet as 
"github.com/someone/localpackage". But how can his project working by avoid 
following change? import "github.com/SOMEONE/localpackage/local2"

Here maybe one solution:
1. use package comment to specify root of local project in projcetroot
package main // import "#" 
2. use someway to reference local package
import "#/local2"

REFERENCE: https://github.com/vipally/localpackage 

Thanks for reading!
Ally

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