code: func ParseTarget(target string) string {
  	if len(target) > 0 {
  		return target
  	}
  
  	for _, gopath := range base.GetGOPATHs() {
  		if strings.HasPrefix(setting.WorkDir, gopath) {
  			target = strings.TrimPrefix(setting.WorkDir, path.Join(gopath, "src")+"/")
  			log.Info("Guess import path: %s", target)
  			return target
  		}
  	}
  	return "."
  }
docs: // ParseTarget guesses import path of current package if target is empty,
  // otherwise simply returns the value it gets.