duanluan8390 2017-05-01 17:04
浏览 148
已采纳

由于版本google.golang.org/appengine已过时,如何导入Golang Appengine的github版本? [重复]

The repository at google.golang.org/appengine is outdated( aetest package specifically), the most current version of aetest looks like it's at github.com/golang/appengine

I'm not sure how to propery import the repository code to my local computer because the import paths in the code repository are to an outdated repository.

I attempted:
$ go get github.com/golang/appengine

package github.com/golang/appengine: code in directory /Users/Bryan/work/gocode/src/github.com/golang/appengine expects import "google.golang.org/appengine"

So it looks like the code in the Github repository uses the old import path.

How should I properly import the most current version of golang appengine?

</div>
  • 写回答

1条回答 默认 最新

  • dqeonr8554 2017-05-01 17:16
    关注

    Copy the files from $GOPATH/src/github.com/golang/appengine to $GOPATH/src/google.golang.org/appengine, and use google.golang.org/appengine as the import path.

    That, or go into $GOPATH/src/github.com/golang/appengine/doc.go and delete the comment after package appengine in the file.

    This is a result of canonical import paths added in Go 1.4.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 关于k8s node节点被释放后如何驱逐节点并添加新节点
  • ¥15 subprocess.CalledProcessError: Command ‘[‘ninja‘, ‘-v‘]‘ returned non-zero exit status 1
  • ¥15 for循环处理大量数据怎么优化
  • ¥15 笔记本接显卡扩展坞重启报错
  • ¥15 为什么这个指令报错啊,一直弄不懂为什么,想问问该怎么弄,决求解决,ubuntu刚入手
  • ¥15 用百度飞将的paddleyolo库里的yolov7训练自己数据集
  • ¥15 Saber里如何查看磁芯的磁通密度
  • ¥25 关于下拉菜单、数据库、关联选项的问题
  • ¥15 STM32 串口DMA同时收发丢字节
  • ¥15 SBML检验显示文档无效改怎么修改?