![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 1231 阅读 · 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 · 4290 阅读 · 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 · 58134 阅读 · 0 评论