sriracha/extension/helloworld.go

25 lines
392 B
Go

package extension
import (
"io"
"log"
"code.rocketnine.space/tslocum/sriracha"
)
type helloWorld struct {
}
func HelloWorld() *helloWorld {
return &helloWorld{}
}
func (h *helloWorld) Attach(file io.Reader, size int64, mime string) (*sriracha.Attachment, error) {
log.Println("Hello, world!")
return nil, nil
}
func (h *helloWorld) Post(post *sriracha.Post) error {
return nil
}