go
佳亮
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
gin的简单使用
包括获取参数,组装参数,文件的上传和下载 package ginstudy import ( "fmt" "github.com/gin-gonic/gin" "log" "net/http" ) //第一个Gin程序 func GinHello(c *gin.Context) { c.JSON(200, gin.H{"message": "pong"}) } // get方法获取参数并输出 func GetParam(c *gin.Context) { //获取请求的全路径 fm.原创 2020-12-15 11:53:36 · 1276 阅读 · 0 评论 -
go语言实现文件的读写和拷贝
package file_utils import ( "bufio" "fmt" "io" "io/ioutil" "os" ) // 打开文件 func OpenFile(filePath string) { file,err:=os.Open(filePath) if err==nil{ fmt.Println("该文件不为空") }else{ fmt.Println(filePath,"不存在!") } fmt.Println(file) err=file.C.原创 2020-11-12 00:12:13 · 448 阅读 · 0 评论
分享