首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > 编程 >

Golang 1.0 文档运用。godoc ,go 命令 学习 ,本地运行 gotour

2012-09-07 
Golang1.0 文档使用。godoc ,go 命令 学习 ,本地运行 gotour首先要安装环境 参考:?http://toeo.iteye.com/b

Golang 1.0 文档使用。godoc ,go 命令 学习 ,本地运行 gotour
首先要安装环境 参考:

?

http://toeo.iteye.com/blog/1470598

?

找了半天 没有 看明白 doc 的目录结构。

?

原来 doc 是web 展示的 !!!

?

本地 运行 web 版本 doc文档

?

输入?

?

?

?

访问你的浏览器年 就有自己的一个 本地 文档中心了。


Golang  1.0 文档运用。godoc ,go 命令 学习 ,本地运行 gotour

?

google go 毫不吝啬。golang.org 上面的文档相关东西都 本地化了。直接在web里面运行go程序的没有 本地化。必需通过web访问。(http://play.golang.org/p/3VsQMI4Rx5?)这个地址可以直接编辑,直接运行。

?


Golang  1.0 文档运用。godoc ,go 命令 学习 ,本地运行 gotour

这个最重要 了。是 GO 语言的 可以使用的 api 函数 的全部页面。

?

http://localhost:6060/pkg/

?


Golang  1.0 文档运用。godoc ,go 命令 学习 ,本地运行 gotour

?

?

?

?

网络安装,运行gotour

?

看到 这个 才在知道 go 有一个 类似 debian的 apt-get 的安装文件的方式。

?

http://tour.golang.org/#2

?

超赞!!!!!!

?

?

?

安装 hg?

?

http://mercurial.selenic.com/

?

?

然后在运行 命令。没有报错。说明已经下载了。

?


Golang  1.0 文档运用。godoc ,go 命令 学习 ,本地运行 gotour

运行 :

?

?

发现又 起了 一个 http 端口。go的一个服务 就启动了。

?

?

太令人惊奇了!!!!

?


Golang  1.0 文档运用。godoc ,go 命令 学习 ,本地运行 gotour

我本地就可以跑 gotour 应用了。看了要自己搭建一个 golang的私服是非常的容易啊。

?

继续 学习 go, 有兴趣的大家 一起学习。

1 楼 techabc 2012-05-10   GFW! 该咋整呢?

D:\Go>go get code.google.com/p/go-tour/gotour
package code.google.com/p/go-tour/gotour: Get https://code.google.com/p/go-tour/
source/checkout?repo=: dial tcp 74.125.71.113:443: A connection attempt failed b
ecause the connected party did not properly respond after a period of time, or e
stablished connection failed because connected host has failed to respond.

D:\Go>go get http://code.google.com/p/go-tour/gotour
package http:/code.google.com/p/go-tour/gotour: unrecognized import path "http:/
code.google.com/p/go-tour/gotour"

D:\Go>

2 楼 toeo 2012-05-10   如果使用 go 1.0.1 就

>go get code.google.com/p/go-tour/gotour

我这里是可以的。祝你好运。
或者配置一个host 试试:

203.208.46.30 code.google.com

热点排行