keqing

command module
v0.0.0-...-914f9a4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2024 License: MIT Imports: 2 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL