Go's basic types areboolstringint int8 int16 int32 int64uint uint8 uint16 uint32 uint64 uintptrbyte // alias for uint8rune // alias for int32 ...
分类:
其他好文 时间:
2014-10-26 21:06:48
阅读次数:
178
Thevarstatement declares a list of variables; as in function argument lists, the type is last.package main import "fmt"var i intvar c, python, java bo...
分类:
其他好文 时间:
2014-10-26 21:01:48
阅读次数:
232
A function can return any number of results.This function returns two strings.package mainimport "fmt"func swap(x, y string) (string, string) { ret...
分类:
其他好文 时间:
2014-10-26 21:00:32
阅读次数:
143
A var declaration can include initializers, one per variable.If an initializer is present, the type can be omitted; the variable will take the type of...
分类:
其他好文 时间:
2014-10-26 20:59:53
阅读次数:
168
using System.Web;/// /// 客户端脚本输出/// public class JsHelper{ /// /// 弹出信息,并跳转指定页面。 /// public static void AlertAndRedirect(string message, string toUR.....
分类:
Web程序 时间:
2014-10-22 17:19:50
阅读次数:
179
Maven手动创建多模块项目我要创建的项目名称是:unicorn,项目包含两个模块,分别是unicorn-core和unicorn-web。包的路径是com.goldpalm.tour。项目创建流程如下1.使用项目的命令创建unicorn项目后,删除src目录,在pom中调整packaging为po...
分类:
其他好文 时间:
2014-10-22 17:18:47
阅读次数:
194
下载了2部Swift的视频,现在因为有两个网页的视频可以免费学习下,所以还是选了网上的资源来,一个是麦子学院,一个是极客学院,因为本人是大三学生,开发只能在虚拟机下,不过还是希望能学好来~ 装好Yosemite和Xcode6.1,让我们开工吧~ A Swift Tour从Hello World 开始...
分类:
编程语言 时间:
2014-10-22 00:58:06
阅读次数:
190
转自:http://letsswift.com/2014/06/swift_overview/Swift语言概览基本概念注:这一节的代码源自The Swift Programming Language中的A Swift Tour。Hello, world类似于脚本语言,以下的代码即是一个完整的Swi...
分类:
编程语言 时间:
2014-10-21 13:44:15
阅读次数:
311
Google在golang.org和appspot上分别搭建了基于浏览器的交互式Go编程指南-go tour,便于golang学习.但由于中国特色的网络环境无法正常访问,so决定自己搭建一个go tour. 准备工作: export?GOPATH=$HOME/golang 下载...
分类:
其他好文 时间:
2014-10-20 15:30:42
阅读次数:
244
Hi,MynameisKhanittafromPhuket,Thailand.MynicknameisMui(Thaisalwaysuseanicknametocallafriend/relative.I‘dtraveledinXinjiangfromSeptember28toOctober06,2014.Itwasveryimpressiveandexciting.
分类:
其他好文 时间:
2014-10-20 02:18:14
阅读次数:
177