Documentation
¶
Overview ¶
Package scanner provides functions to discover migration and seeder files in a directory by matching known naming patterns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ScanMigrations ¶
ScanMigrations scans dir for Go files whose names match the migration pattern YYYYMMDDHHMMSS_*.go. It returns a sorted list of full file paths. Test files (*_test.go) are excluded.
func ScanSeeders ¶
ScanSeeders scans dir for Go files whose names match the seeder pattern *_seeder.go. It returns a sorted list of full file paths. Test files (*_test.go) are excluded.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.