Files

31 lines
456 B
Go
Raw Permalink Normal View History

2026-08-05 12:06:46 +05:00
package stdout
import (
"fmt"
"go.dev.pztrn.name/rsser/outputs"
)
type stdout struct{}
// New creates new STDOUT output handler.
func New() outputs.Output {
return &stdout{}
}
//nolint:forbidigo
func (s *stdout) Do(_, _, url, title, body string) error {
fmt.Println(title)
fmt.Println("")
fmt.Println("URL:", url)
fmt.Println("")
fmt.Println(body)
fmt.Println("==========")
return nil
}
func (s *stdout) Name() string {
return "stdout"
}