init
This commit is contained in:
24
pkg/writers/writer.go
Normal file
24
pkg/writers/writer.go
Normal 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{}
|
||||
}
|
||||
Reference in New Issue
Block a user