v0.28.0 option schema in struct tags, schema replacing plugin factory metadata, tui prep
This commit is contained in:
1 parent
a1648ce17b
commit
e8e5f05e47
43 files changed
+1345
-1211
No files matched your search
@@ -17,11 +17,7 @@ type Formatter interface {
|
||||
// NewFormatter creates a Formatter using formatter/sanitizer packages
|
||||
func NewFormatter(cfg *config.FormatConfig) (Formatter, error) {
|
||||
if cfg == nil {
|
||||
cfg = &config.FormatConfig{
|
||||
Type: DefaultFormatType,
|
||||
Flags: 0,
|
||||
SanitizerPolicy: "raw",
|
||||
}
|
||||
cfg = &config.FormatConfig{}
|
||||
}
|
||||
|
||||
return NewFormatterAdapter(cfg)
|
||||
|
||||
Reference in new issue
Block a user