...

Source file src/code.rocketnine.space/tslocum/sriracha/extension/helloworld.go

Documentation: code.rocketnine.space/tslocum/sriracha/extension

     1  package extension
     2  
     3  import (
     4  	"io"
     5  	"log"
     6  
     7  	"code.rocketnine.space/tslocum/sriracha"
     8  )
     9  
    10  type helloWorld struct {
    11  }
    12  
    13  func HelloWorld() *helloWorld {
    14  	return &helloWorld{}
    15  }
    16  
    17  func (h *helloWorld) Attach(file io.Reader, size int64, mime string) (*sriracha.Attachment, error) {
    18  	log.Println("Hello, world!")
    19  	return nil, nil
    20  }
    21  
    22  func (h *helloWorld) Post(post *sriracha.Post) error {
    23  	return nil
    24  }
    25  

View as plain text