scanner

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 5 Imported by: 0

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

func ScanMigrations(dir string) ([]string, error)

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

func ScanSeeders(dir string) ([]string, error)

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.

Jump to

Keyboard shortcuts

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