摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
Package naming Alan Donovan, co-author of “The Go Programming Language,” advises, Choose package names that will sound natural in a sentence. This app 阅读全文
摘要:
将一时间戳字段默认值设为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 阅读全文
摘要:
Viper uses github.com/mitchellh/mapstructure under the hood for unmarshaling values which uses mapstructure tags by default. supported extensions are 阅读全文