Keqing
Genshin telegram bot
Database
Schema
new schema
go run -mod=mod entgo.io/ent/cmd/ent new --target db/schema <Model>
generate entity
go generate ./db
Migration
install atlas
go install ariga.io/atlas/cmd/atlas@master
update migrations hash
go run main.go migrate hash
generate migrations
go run main.go migrate generate --name <migration_name>
lint migrations
go run main.go migrate lint --latest 1
apply migrations
go run main.go migrate apply
Translation
install gotext cmd
go install golang.org/x/text/cmd/gotext@master
generate catalog
go generate -v ./pkg/i18n
Thanks