
Go
文章平均质量分 61
wh_luosangnanka5
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Go语言获取(*nux)系统环境变量
/** * Created with IntelliJ IDEA. * User: luosangnanka * Date: 13-7-16 * Time: 下午3:17 * To change this template use File | Settings | File Templates. */package mainimport ( f "fmt" "os")转载 2013-07-16 15:23:43 · 1397 阅读 · 0 评论 -
Go 复制文件
/** * Created with IntelliJ IDEA. * User: luosangnanka * Date: 13-7-16 * Time: 下午3:25 * To change this template use File | Settings | File Templates. */package mainimport ( f "fmt" "io" "o转载 2013-07-16 16:02:14 · 4450 阅读 · 0 评论 -
Golang 类型转换整理
1、整形到字符串: var i int = 1var s strings = strconv.Itoa(i) 或者 s = FormatInt(int64(i), 10)2、字符串到整形 var s string = "1"var i inti, err = strconv.Atoi(s) 或者 i, err = ParseInt(s, 10, 0)3、字符串到f原创 2013-07-31 11:02:06 · 58332 阅读 · 0 评论