Go Go
Go Go
*:first-child {
margin-top: 0 !important;
}
body>*:last-child {
margin-bottom: 0 !important;
}
/* BLOCKS
=============================================================================*/
p, blockquote, ul, ol, dl, table, pre {
margin: 15px 0;
}
/* HEADERS
=============================================================================*/
h1, h2, h3, h4, h5, h6 {
margin: 20px 0 10px;
padding: 0;
font-weight: bold;
-webkit-font-smoothing: antialiased;
}
h1 tt, h1 code, h2 tt, h2 code, h3 tt, h3 code, h4 tt, h4 code, h5 tt, h5 code, h6 tt, h6 code {
font-size: inherit;
}
h1 {
font-size: 28px;
color: #000;
}
h2 {
font-size: 24px;
border-bottom: 1px solid #ccc;
color: #000;
}
h3 {
font-size: 18px;
}
h4 {
font-size: 16px;
}
h5 {
font-size: 14px;
}
h6 {
color: #777;
font-size: 14px;
}
body>h2:first-child, body>h1:first-child, body>h1:first-child+h2, body>h3:first-child, body>h4:first-child, body>h5:first-child, body>h6:first-child {
margin-top: 0;
padding-top: 0;
}
a:first-child h1, a:first-child h2, a:first-child h3, a:first-child h4, a:first-child h5, a:first-child h6 {
margin-top: 0;
padding-top: 0;
}
h1+p, h2+p, h3+p, h4+p, h5+p, h6+p {
margin-top: 10px;
}
/* LINKS
=============================================================================*/
a {
color: #4183C4;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
/* LISTS
=============================================================================*/
ul, ol {
padding-left: 30px;
}
ul li > :first-child,
ol li > :first-child,
ul li ul:first-of-type,
ol li ol:first-of-type,
ul li ol:first-of-type,
ol li ul:first-of-type {
margin-top: 0px;
}
ul ul, ul ol, ol ol, ol ul {
margin-bottom: 0;
}
dl {
padding: 0;
}
dl dt {
font-size: 14px;
font-weight: bold;
font-style: italic;
padding: 0;
margin: 15px 0 5px;
}
dl dt:first-child {
padding: 0;
}
dl dt>:first-child {
margin-top: 0px;
}
dl dt>:last-child {
margin-bottom: 0px;
}
dl dd {
margin: 0 0 15px;
padding: 0 15px;
}
dl dd>:first-child {
margin-top: 0px;
}
dl dd>:last-child {
margin-bottom: 0px;
}
/* CODE
=============================================================================*/
pre, code, tt {
font-size: 12px;
font-family: Consolas, "Liberation Mono", Courier, monospace;
}
code, tt {
margin: 0 0px;
padding: 0px 0px;
white-space: nowrap;
border: 1px solid #eaeaea;
background-color: #f8f8f8;
border-radius: 3px;
}
pre>code {
margin: 0;
padding: 0;
white-space: pre;
border: none;
background: transparent;
}
pre {
background-color: #f8f8f8;
border: 1px solid #ccc;
font-size: 13px;
line-height: 19px;
overflow: auto;
padding: 6px 10px;
border-radius: 3px;
}
pre code, pre tt {
background-color: transparent;
border: none;
}
kbd {
-moz-border-bottom-colors: none;
-moz-border-left-colors: none;
-moz-border-right-colors: none;
-moz-border-top-colors: none;
background-color: #DDDDDD;
background-image: linear-gradient(#F1F1F1, #DDDDDD);
background-repeat: repeat-x;
border-color: #DDDDDD #CCCCCC #CCCCCC #DDDDDD;
border-image: none;
border-radius: 2px 2px 2px 2px;
border-style: solid;
border-width: 1px;
font-family: "Helvetica Neue",Helvetica,Arial,sans-serif;
line-height: 10px;
padding: 1px 4px;
}
/* QUOTES
=============================================================================*/
blockquote {
border-left: 4px solid #DDD;
padding: 0 15px;
color: #777;
}
blockquote>:first-child {
margin-top: 0px;
}
blockquote>:last-child {
margin-bottom: 0px;
}
/* HORIZONTAL RULES
=============================================================================*/
hr {
clear: both;
margin: 15px 0;
height: 0px;
overflow: hidden;
border: none;
background: transparent;
border-bottom: 4px solid #ddd;
padding: 0;
}
/* IMAGES
=============================================================================*/
img {
max-width: 100%
}
-->
题记:学习是进步的源泉!
在这个云计算、多核盛行的时代,学习一门与之相配合的语言也就无可厚非了。那么对多核与并行计算原生支持的Go就是我的选择了...
关于GO的好坏,我不会去深究,在每个人眼中,这都是主观的。喜欢就会觉得好,不喜欢好也是坏。当然,它本身的优势与劣势是值得我们关注了,这决定了它的适用性。
工欲善其事必先利其器,本人学习一门语言之前,喜欢先寻找趁手的兵器。搜索之,继而找到了LiteIDE。由于偏爱集成开发环境,那么Sublime也就不是我的首选了。
以上全是废话,下面开始搭建开发环境。
1、准备工作
- PC + Windows操作系统(我承认我只会玩Windows...)
- 你得下载Go语言:https://golang.org/ BTW:我下载的文件名是:go1.4.1.windows-amd64.msi
- LiteIDE:https://github.com/visualfc/liteide
2、搭建环境
首先,你需要安装Go语言。什么?你不会?双击msi(或者exe),Next到手软就可以了。当然,最后应该是Finish。经过这个步骤,go就安装上了,什么环境变量啥的都给你配置好了。当然,安装成功不成功不是你说了算,那么打开cmd,输入一个go试试?如果报错,那么狠抱歉,请重试该步骤,或者检查环境变量。如果提示Go is a tool for managing Go source code ,那么恭喜你,安装已成功!
接下面,安装LiteIDE,这货的下载地址在http://sourceforge.net/projects/liteide/files,如果你爱折腾,那么直接下载源码编译也是OK的,请参考https://github.com/visualfc/liteide/blob/master/liteidex/deploy/welcome/en/install.md。此处熊出没!liteide下载下来可不是exe或者msi文件哦。我下载的文件名是:liteidex27-1.windows.7z。既然这样,那么解压缩,找个地儿一扔就搞定,是不是更简单?
3、永远的经典:Hello World
既然到了这里,想必以上两个小玩意已经安装好了。那么就应该开始写代码。据说程序员爱代码不爱妹子,这是真的么?
找到liteIDE的安装目录,进行/bin目录,双击“liteide.exe”(PS:一看到这个丑丑的太极图标,我就在想,这货应该是一个国人开发的吧,呵呵,果真是!)。和一般IDE无异,File->New->Go1 Command Project(Not Use GOPATH),当然其他也是可以选的,惊喜在等着你。输入必要的信息,那么一个项目就创建好了。
打开main.go文件,输入代码(这段代码我是借鉴的,肯定不是copy的):
// demo1 project main.go
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello World!")
}
然后点击工具栏上的FR(File Run),这坑爹的按钮,简直反人类。。我点了N次Go按钮之后,才发现这货才是运行。。在右下方区域就能看到输出了。。Hello World~
后记:至此,一个简单的Go开发环境已经搭建好了。
或许你还有疑问
- 如果生成可执行文件呢? 可以利用LiteIDE的Build按钮,或者是控制台命令
go build - 如果我是64位系统,如何生成32位可执行程序呢? 我也不知道,只能给你关键字“交叉编译”
- 更多,就留给你慢慢发掘吧。Over!
随机推荐
- 从此爱上iOS Autolayout
转:从此爱上iOS Autolayout 这篇不是autolayout教程,只是autolayout动员文章和经验之谈,在本文第五节友情链接和推荐中,我将附上足够大家熟练使用autolayout的教程 ...
- HDU 1711 Number Sequence (KMP)
白书说这个是MP,没有对f 数组优化过,所以说KMP有点不准确 #include <stdio.h> int a,b; int T[1000010],P[10010];//从0开始存 in ...
- How to use “svn add” recursively in Linux shell?
This command will add any un-versioned files listed in svn st command output to subversion. Note tha ...
- 如何获得WPA握手包&EWSA破解WPA密码教程[zz]
获得WPA\WPA2 握手包的方法有很多,下面介绍通过aircrack-ng工具包来载获握手数据包. 1.下载aircrack-ng工具包. 2.终端里输入 sudo airmon-ng start ...
- Oracle的 Pfile生成
SQL> create pfile from spfile; File created. SQL> [oracle@localhost dbs]$ ls -lrttotal 24-rw-r ...
- WPS 文字排版 标题回车后标题号自动增加
飞思卡来互联网提供全球性的 看了看 风格的呵呵 合格否d合格否的 secure embedded嵌入式解 个国家和地区,注册了成千上万项专利,产品面向 物联网,汽车电子,消费电子,工业及网络设备等市 ...
- arulesSequences包做序列模式的关联分析
实验数据: 实验文件: ? 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 02 ...
- Apple individual program 加入之后的玩法 官方资源
Apple individual program 加入之后的玩法 官方资源 0. 开发资源文档 0.1 开发文档: https://developer.apple.com/support/res ...
- 准备开源一套异形UI控件
今天整理磁盘,发现在一个以前加密过的一个磁盘文件中发现了一些以前做的UI代码.平时都没怎么去用,放着放着只会慢慢的去遗忘,所以打算慢慢的将一些UI代码整理整理,然后开源出来,集合广大Delphier的 ...
- 几组User-Agent
Your User Agent String is: Mozilla/5.0 (X11; Linux i686) AppleWebKit/535.19 (KHTML, like Gecko) Ubun ...