ZhangZhihui's Blog  
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 102 下一页

2024年11月18日

摘要: zzh@ZZHPC:/zdata/Github/greenlight$ go get golang.org/x/time/rate@latest go: downloading golang.org/x/time v0.8.0 go: added golang.org/x/time v0.8.0 f 阅读全文
posted @ 2024-11-18 18:07 ZhangZhihuiAAA 阅读(14) 评论(0) 推荐(0)

2024年11月17日

摘要: zzh@ZZHPC:~$ curl "localhost:4000/v1/movies?title=godfather&genres=crime,drama&page=1&page_size=5&sort=year" {Title:godfather Genres:[crime drama] Pag 阅读全文
posted @ 2024-11-17 10:16 ZhangZhihuiAAA 阅读(13) 评论(0) 推荐(0)

2024年11月16日

摘要: var ( ErrRecordNotFound = errors.New("record not found") ErrEditConflict = errors.New("edit conflict") ) // Update updates a specific record in the mo 阅读全文
posted @ 2024-11-16 20:50 ZhangZhihuiAAA 阅读(15) 评论(0) 推荐(0)
 
摘要: 阅读全文
posted @ 2024-11-16 19:41 ZhangZhihuiAAA 阅读(10) 评论(0) 推荐(0)
 
摘要: Installing the migrate tool To manage SQL migrations in this project we’re going to use the migrate command-line tool (which itself is written in Go). 阅读全文
posted @ 2024-11-16 11:20 ZhangZhihuiAAA 阅读(14) 评论(0) 推荐(0)

2024年11月15日

摘要: zzh@ZZHPC:/zdata/Github/greenlight$ docker pull postgres zzh@ZZHPC:/zdata/Github/greenlight$ docker run --name postgres17 -p 5432:5432 -e POSTGRES_USE 阅读全文
posted @ 2024-11-15 17:30 ZhangZhihuiAAA 阅读(18) 评论(0) 推荐(0)
 
摘要: package main import ( "fmt" ) type A struct { field1 string } type B struct { field1 string } func main() { a := A{ field1: "aaa", } b := B(a) fmt.Pri 阅读全文
posted @ 2024-11-15 16:30 ZhangZhihuiAAA 阅读(8) 评论(0) 推荐(0)
 
摘要: func (app *application) exampleHandler(w http.ResponseWriter, r *http.Request) { var input struct { Foo string `json:"foo"` } // Use io.ReadAll() to r 阅读全文
posted @ 2024-11-15 08:27 ZhangZhihuiAAA 阅读(26) 评论(0) 推荐(0)
 
摘要: 阅读全文
posted @ 2024-11-15 08:21 ZhangZhihuiAAA 阅读(11) 评论(0) 推荐(0)

2024年11月14日

摘要: 阅读全文
posted @ 2024-11-14 20:33 ZhangZhihuiAAA 阅读(13) 评论(0) 推荐(0)
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 102 下一页