32 lines
		
	
	
	
		
			550 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			550 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package formatters
 | |
| 
 | |
| import (
 | |
| 	"codeberg.org/danjones000/my-log/config"
 | |
| 	"codeberg.org/danjones000/my-log/models"
 | |
| )
 | |
| 
 | |
| func newNull(ff config.Formatters) (Formatter, error) {
 | |
| 	return &Null{}, nil
 | |
| }
 | |
| 
 | |
| type Null struct{}
 | |
| 
 | |
| func (n *Null) Name() string {
 | |
| 	return "zero"
 | |
| }
 | |
| 
 | |
| func (n *Null) Meta(m models.Meta) (o []byte, err error) {
 | |
| 	return
 | |
| }
 | |
| 
 | |
| func (n *Null) Entry(e models.Entry) (o []byte, err error) {
 | |
| 	return
 | |
| }
 | |
| 
 | |
| func (n *Null) Log(l models.Log) (o []byte, err error) {
 | |
| 	return
 | |
| }
 | |
| 
 | |
| func (n *Null) Logs(logs []models.Log) (out []byte, err error) {
 | |
| 	return
 | |
| }
 |