encore-go-infrastructure
Installation
SKILL.md
Encore Go Infrastructure Declaration
Instructions
Encore Go uses declarative infrastructure - you define resources as package-level variables and Encore handles provisioning:
- Locally (
encore run) - Encore runs infrastructure in Docker (Postgres, Redis, etc.) - Production - Deploy via Encore Cloud to your AWS/GCP, or self-host using generated infrastructure config
Critical Rule
All infrastructure must be declared at package level, not inside functions.
Databases (PostgreSQL)
package user
import "encore.dev/storage/sqldb"