github.com/aleksanderaleksic/tgmigrate@v0.1.7/migration/migration.go (about) 1 package migration 2 3 import "github.com/hashicorp/hcl/v2" 4 5 type MigrationsBlock struct { 6 Type string `hcl:"type,label"` 7 Name string `hcl:"name,label"` 8 Remain hcl.Body `hcl:",remain"` 9 } 10 11 type Migration struct { 12 Type string 13 Name string 14 Move *MoveBlock 15 Remove *RemoveBlock 16 }