
go
aircoder
这个作者很懒,什么都没留下…
展开
-
vim与gedit中实现go语法高亮显示
1. 将 ~/go/misc/vim/go.vim 复制到 ~/.vim/syntax/ 中(Ubuntu 9.10下没有这个目录,故要先创建)2. 在~/.vim/ftdetect/ 中建立 go.vim 文件,内容为:autocmd BufNewFile,BufReadPost *.go set filetype=go这样 vim 就可以自动识别 go 源程序,并高亮显...原创 2013-07-22 13:26:21 · 238 阅读 · 0 评论 -
go 学习笔记
1:cc := "hello"+strconv.Itoa(i) 字符串与整形连接 "strconv" //这个包就是专用来干 类型转换的事情的原创 2013-08-05 01:27:09 · 118 阅读 · 0 评论 -
go web
package mainimport ("io""io/ioutil""log""os""net/http")const (UPLOAD_DIR = "uploads")func uploadHandler(w http.ResponseWriter, r *http.Request) { if r.Method == "GET原创 2013-08-19 01:36:02 · 97 阅读 · 0 评论 -
Golang 常用字符串处理方法汇总
package main import ( "fmt" "strings" //"unicode/utf8") func main() { fmt.Println("查找子串是否在指定的字符串中") fmt.Println(" Contains 函数的用法") fmt.Println(strings.Contains(...原创 2013-09-13 17:05:39 · 494 阅读 · 0 评论