GOlang
golang讲解(go语言)标准库分析之os(1)
[caption id="attachment_902" align="alignnone" width="300"] Golang标准库[/caption]
今天我们分析的是golang的os包,为什么今天不分...
golang讲解(go语言)标准库分析之io完结篇
今天我们继续讲golang标准库的io库,我们今天就把io库就讲完了,所以就不多说了,让给我们的讲解和代码
[1]type Reader
type Reader...
golang讲解(go语言)标准库分析之os(6)
[caption id="attachment_902" align="alignnone" width="300"] Golang标准库[/caption]
今天我们讲golang标准库的os包type File struct{},还是...
Go语言结构struct(普及golang)
1.struct 简洁
这个的struct和C语言的很相似,模拟出class的功能,但是不完全的!没有构造函数等!
2.struct的申明
package main
impor...
golang讲解(go语言)标准库分析之os/exec
[caption id="attachment_902" align="alignnone" width="300"] Golang标准库[/caption]
今天我们讲os/exec包,这个我就不废话了
(1)func Look...
golang讲解(go语言)标准库分析之os(3)
[caption id="attachment_902" align="alignnone" width="300"] Golang标准库[/caption]
今天人我们继续分析os包,这个包其实很多估计还待几...
Go语言结构struct
1.struct 简洁
这个的struct和C语言的很相似,模拟出class的功能,但是不完全的!没有构造函数等!
2.struct的申明
package main
import ...
Golang 中的 cgo 使用方法,调用 mysql 库为案例
Golang 中关于 cgo 的文档比较少,所以我绝对写个简单的案例,这里用 Mysql 做案例,一种是调用C里边的函数,一种是完全用 golang 来点用 mysql ...
golang讲解(go语言)标准库分析之io.ioutil
[caption id="attachment_902" align="alignnone" width="300"] Golang标准库[/caption]
今天我们讲解的是golang标准库里边的io/ioutil包--...