ZhangZhihui's Blog |
|
||
2024年11月20日
摘要:
How to change the cnfiguration for rate limiting in flight? How to change the configuration of pgxpool without restarting the application? How to dyna 阅读全文
摘要:
package main import ( "fmt" "os" ) func main() { fmt.Println(os.Executable()) fmt.Println(os.Getwd()) } zzh@ZZHPC:~/zd/Github/ztest$ go run main.go /t 阅读全文
2024年11月19日
摘要:
zzh@ZZHPC:~$ curl -w '\nTime: %{time_total}\n' -d "$BODY" localhost:4000/v1/users { "user": { "id": 6, "created_at": "2024-11-21T18:33:14+08:00", "nam 阅读全文
摘要:
zzh@ZZHPC:/zdata/Github/greenlight$ migrate create -seq -ext=.sql -dir=./migrations create_user_table /zdata/Github/greenlight/migrations/000004_creat 阅读全文
2024年11月18日
摘要:
zzh@ZZHPC:/zdata/Github/greenlight$ go run ./cmd/api time=2024-11-18T19:49:43.864+08:00 level=INFO msg="database connection pool established" time=202 阅读全文
摘要:
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 阅读全文
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 阅读全文
2024年11月16日
摘要:
var ( ErrRecordNotFound = errors.New("record not found") ErrEditConflict = errors.New("edit conflict") ) // Update updates a specific record in the mo 阅读全文
摘要:
阅读全文
摘要:
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). 阅读全文
|
Copyright © 2024 ZhangZhihuiAAA
Powered by .NET 9.0 on Kubernetes |