Go语言环境搭建方法(Windows)
设置环境变量GOPATH=GOPATH=D:\Go\
下载地址:http://code.google.com/p/go/downloads/detail?name=go1.2.windows-386.msi&can=2&q=
2、安装GIT1.90安装包
下载地址:http://code.google.com/p/msysgit/downloads/detail?name=Git-1.9.0-preview20140217.exe&can=2&q=
3、运行git bash,需要需要安装redis
go get "github.com/garyburd/redigo/redis"
4、编写HelloWorld.go
// cmpout // Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that we can do page 1 of the C book. package main func main() { print("hello, world\n") }
5、点开始/运行输入CMD,运行go build HelloWorld.go即可编译
郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。