doukaojie8573 2014-10-04 10:14
浏览 70
已采纳

如何使用`godoc -http =:6060`显示内置类型?

If I start

godoc -http=:6060

and then open http://localhost:6060/pkg/builtin/#string (e.g. via a function declaration that uses string as a type somewhere), I get a big red "open /usr/local/Cellar/go/1.3.3/libexec/src/builtin: no such file or directory".

How do I get godoc to work the same way as http://golang.org/pkg/builtin/#string ?

I tried go get builtin, but that did not change anything. And DuckDuckGo and Google searches did not illuminate me either.

(I've installed Go using Homebrew on OS X.)

  • 写回答

1条回答 默认 最新

  • dsgffz2579 2014-10-04 10:28
    关注

    Godoc was updated recently to match the new internal layout of Go 1.4.

    Prior to 1.4, system packages went into $GOROOT/src/pkg/, in 1.4 (current dev version) they moved to$GOROOT/src.

    To get the pre-1.4 compatible version:

    cd $GOPATH/src/code.google.com/p/go.tools/cmd/godoc
    hg checkout -C release-branch.go1.3
    go install
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器