Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHostname ¶
GetHostname returns the hostname (in the form `http://example.com/`) from a request
Types ¶
type Paste ¶
type Paste struct {
// contains filtered or unexported fields
}
Paste is the wrapper struct for the package
func (*Paste) HandlePasteUpload ¶
func (p *Paste) HandlePasteUpload(fileData io.Reader, fileName string, w http.ResponseWriter, r *http.Request)
HandlePasteUpload saves the paste to the disc
func (*Paste) RenderPaste ¶
func (p *Paste) RenderPaste(w http.ResponseWriter, r *http.Request)
RenderPaste sends the paste data
Click to show internal directories.
Click to hide internal directories.