init
Some checks are pending
CI / Test (1.23) (push) Waiting to run
CI / Test (1.24) (push) Waiting to run
CI / Test (1.25) (push) Waiting to run
CI / Lint (push) Waiting to run
CI / Build (push) Waiting to run

This commit is contained in:
2025-12-16 13:12:43 +02:00
parent 9f42be432b
commit b9650739bf
20 changed files with 1095 additions and 2 deletions

24
pkg/writers/writer.go Normal file
View File

@@ -0,0 +1,24 @@
package writers
import (
"git.warky.dev/wdevs/relspecgo/pkg/models"
)
// Writer defines the interface for writing database specifications
// to various output formats
type Writer interface {
// Write takes a Database model and writes it to the desired format
Write(db *models.Database) error
}
// WriterOptions contains common options for writers
type WriterOptions struct {
// OutputPath is the path where the output should be written
OutputPath string
// PackageName is the Go package name (for code generation)
PackageName string
// Additional options can be added here as needed
Metadata map[string]interface{}
}