- 博客(3)
- 收藏
- 关注
原创 Go1.8操作Windows硬盘小实例
package main// #include <stdlib.h> import "C"import ( "bytes" "errors" "os" "syscall" "unsafe" )var ( success = "The operation completed successfully." kernel
2017-03-13 09:58:20 641
原创 Golang1.8标准库http.Fileserver跟http.ServerFile小例子
package mainimport ( "fmt" "net/http" "os" "path" "strings" )var staticfs = http.FileServer(http.Dir("D:\\code\\20160902\\src\\"))func main() { //浏览器打开的时候显示的就是D:\\code\\20160902
2017-03-06 09:33:18 6109 2
原创 Golang1.8使用slice实现先进进出功能
package cacheimport ( "fmt" )type lists struct { count int pop int last int index int list []int }func (l *lists) Add(i int) { l.list[l.last] = i l.last += 1 if
2017-03-03 16:02:59 2120
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人