✨ Add plain text formatter
This commit is contained in:
parent
286ac4557d
commit
89e6c2b3bd
5 changed files with 276 additions and 0 deletions
10
formatters/interface.go
Normal file
10
formatters/interface.go
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
package formatters
|
||||
|
||||
import "codeberg.org/danjones000/my-log/models"
|
||||
|
||||
type Formatter interface {
|
||||
Name() string
|
||||
Log(models.Log) (out []byte, err error)
|
||||
Entry(models.Entry) (out []byte, err error)
|
||||
Meta(models.Meta) (out []byte, err error)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue