ZhangZhihui's Blog  
上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 102 下一页

2023年12月10日

摘要: Docker compose file: services: postgres: image: postgres:16-alpine environment: - POSTGRES_USER=root - POSTGRES_PASSWORD=aaa - POSTGRES_DB=zimple_bank 阅读全文
posted @ 2023-12-10 17:17 ZhangZhihuiAAA 阅读(16) 评论(0) 推荐(0)
 
摘要: Got below error when createdb: error: connection to server on socket "/var/run/postgresql/.s.PGSQL.5432" failed: No such file or directory This is bec 阅读全文
posted @ 2023-12-10 17:15 ZhangZhihuiAAA 阅读(850) 评论(0) 推荐(0)

2023年12月9日

摘要: docker builder prune Remove build cache Usage docker builder prune Description Remove build cache Options OptionShortDefaultDescription --all -a Remov 阅读全文
posted @ 2023-12-09 21:54 ZhangZhihuiAAA 阅读(55) 评论(0) 推荐(0)
 
摘要: docker compose build --no-cache docker compose up 阅读全文
posted @ 2023-12-09 18:43 ZhangZhihuiAAA 阅读(115) 评论(0) 推荐(0)

2023年12月8日

摘要: Dockerfile: # Build stage FROM golang:1.21.5-alpine3.18 AS builder WORKDIR /app COPY . . RUN go env -w GOPROXY=https://goproxy.io,direct RUN go build 阅读全文
posted @ 2023-12-08 21:44 ZhangZhihuiAAA 阅读(16) 评论(0) 推荐(0)

2023年12月7日

摘要: Package naming Alan Donovan, co-author of “The Go Programming Language,” advises, Choose package names that will sound natural in a sentence. This app 阅读全文
posted @ 2023-12-07 11:25 ZhangZhihuiAAA 阅读(54) 评论(0) 推荐(0)

2023年12月5日

摘要: package main import ( "fmt" "golang.org/x/crypto/bcrypt" ) func main() { password := "abcdef" hashedPassword1, _ := bcrypt.GenerateFromPassword([]byte 阅读全文
posted @ 2023-12-05 20:57 ZhangZhihuiAAA 阅读(17) 评论(0) 推荐(0)
 
摘要: 将一时间戳字段默认值设为0001-01-01 00:00:00 UTC,在timezone为东8区的数据库中字段值显示为: 0001-01-01 08:05:43+08:05:43 Google后找到如下解释: 0001-01-01 00:00:00 UTC. And that is indeed 阅读全文
posted @ 2023-12-05 15:47 ZhangZhihuiAAA 阅读(178) 评论(0) 推荐(0)

2023年12月4日

摘要: https://github.com/uber-go/mock Install mockgen: zzh@ZZHPC:/zdata/Github/zimplebank$ go install go.uber.org/mock/mockgen@latest go: downloading go.ube 阅读全文
posted @ 2023-12-04 17:24 ZhangZhihuiAAA 阅读(47) 评论(0) 推荐(0)
 
摘要: Viper uses github.com/mitchellh/mapstructure under the hood for unmarshaling values which uses mapstructure tags by default. supported extensions are 阅读全文
posted @ 2023-12-04 13:38 ZhangZhihuiAAA 阅读(59) 评论(0) 推荐(0)
上一页 1 ··· 73 74 75 76 77 78 79 80 81 ··· 102 下一页