
golang
Qyee16
给自己一个自己的家
linux/window/mac;c++/ VC/Qt/object-c/JAVA
展开
-
[GO] mac cannot find package "fmt"
报错:/usr/local/Cellar/go/1.8.3/libexec/bin/go build -i [/Users/xxxx] httpServer.go:5:2: cannot find package "fmt" in any of: /usr/local/bin/src/fmt (from $GOROOT) /Users/haiqingzhu/go/src/fmt (f原创 2017-08-05 23:01:10 · 5102 阅读 · 0 评论 -
[golang]文件服务器
也来凑个热闹,学习Golang,摆脱苦逼的C++,上代码一个文件服务器。package main import ( "os" "os/exec" "strings" "net/http" ) func main(){ h := http.FileServer(http.Dir(getCurrentPath())) http.ListenA...原创 2018-04-15 17:00:32 · 761 阅读 · 0 评论