GOlang
golang讲解(go语言)标准库分析之os(6)
[caption id="attachment_902" align="alignnone" width="300"] Golang标准库[/caption]
今天我们讲golang标准库的os包type File struct{},还是...
golang讲解(go语言)标准库分析之io.ioutil
[caption id="attachment_902" align="alignnone" width="300"] Golang标准库[/caption]
今天我们讲解的是golang标准库里边的io/ioutil包--...
golang读取ini配置的pkg(读取配置文件)
今天我写了一个go读取ini文件的包,已经上传到github上边了,方便大家使用,主要是读取配置文件的方法。下边是简单的文档
The official w...
GO语言(golang)切片slice
切片slice是引用类型 len()函数获取元素的个数 cap()获取数组的容量
1.申明方式
(1)var a []int 与数组不同的是他不申明长度
(2)s2 ...
golang讲解(go语言)标准库分析之os(7)
[caption id="attachment_902" align="alignnone" width="300"] Golang标准库[/caption]
今天我们继续讲golang标准库的os包,依然是没有...
golang讲解(go语言)标准库分析之os(1)
[caption id="attachment_902" align="alignnone" width="300"] Golang标准库[/caption]
今天我们分析的是golang的os包,为什么今天不分...
Golang 中的 cgo 使用方法,调用 mysql 库为案例
Golang 中关于 cgo 的文档比较少,所以我绝对写个简单的案例,这里用 Mysql 做案例,一种是调用C里边的函数,一种是完全用 golang 来点用 mysql ...
Go语言结构struct
1.struct 简洁
这个的struct和C语言的很相似,模拟出class的功能,但是不完全的!没有构造函数等!
2.struct的申明
package main
import ...
golang讲解(go语言)标准库分析之os(8)
[caption id="attachment_902" align="alignnone" width="300"] Golang标准库[/caption]
今天我们继续os包,不多说话了就说一句是golang的os包
...