first commit
This commit is contained in:
14
output/formatter/none.go
Normal file
14
output/formatter/none.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package formatter
|
||||
|
||||
import "gitoa.ru/go-4devs/console/output/style"
|
||||
|
||||
func None() *Formatter {
|
||||
return New(
|
||||
WithStyle(func(name string) (style.Style, error) {
|
||||
if _, err := style.Find(name); err != nil {
|
||||
return style.Empty(), err
|
||||
}
|
||||
|
||||
return style.Empty(), nil
|
||||
}))
|
||||
}
|
||||
Reference in New Issue
Block a user