// Code generated by qtc from "index.qtpl". DO NOT EDIT. // See https://github.com/valyala/quicktemplate for details. // Index's contents. //line template/index.qtpl:2 package template //line template/index.qtpl:2 import ( qtio422016 "io" qt422016 "github.com/valyala/quicktemplate" ) //line template/index.qtpl:2 var ( _ = qtio422016.Copy _ = qt422016.AcquireByteBuffer ) //line template/index.qtpl:2 func streamindex_contents(qw422016 *qt422016.Writer) { //line template/index.qtpl:2 qw422016.N().S(` `) //line template/index.qtpl:3 qw422016.N().S(`

Burning Rubber Paste

Usage

Method - EndpointEffect
POST / data=foo
Pastebin foo
PUT /id data=foo
Write foo into /id. Collisions disallowed. If a POST id coincides with your PUT content, it will be overwritten.
GET /id
Read paste with ID "id"
GET /id/raw
Get the raw contents of paste with ID "id"
GET /id/lang
Read paste with ID "id", and highlight it as "lang"

Examples

`) //line template/index.qtpl:38 qw422016.N().S(`
http -f https://brpaste.example.com data=@file.txt
http -f https://brpaste.example.com data=abcd
http -f PUT https://brpaste.example.com/myPaste data=contents
http https://brpaste.example.com/some_id/raw
xdg-open https://brpaste.example.com/some_id/cpp
`) //line template/index.qtpl:44 qw422016.N().S(`

Paste from a browser


`) //line template/index.qtpl:52 qw422016.N().S(` `) //line template/index.qtpl:53 } //line template/index.qtpl:53 func writeindex_contents(qq422016 qtio422016.Writer) { //line template/index.qtpl:53 qw422016 := qt422016.AcquireWriter(qq422016) //line template/index.qtpl:53 streamindex_contents(qw422016) //line template/index.qtpl:53 qt422016.ReleaseWriter(qw422016) //line template/index.qtpl:53 } //line template/index.qtpl:53 func index_contents() string { //line template/index.qtpl:53 qb422016 := qt422016.AcquireByteBuffer() //line template/index.qtpl:53 writeindex_contents(qb422016) //line template/index.qtpl:53 qs422016 := string(qb422016.B) //line template/index.qtpl:53 qt422016.ReleaseByteBuffer(qb422016) //line template/index.qtpl:53 return qs422016 //line template/index.qtpl:53 } // The index layout. //line template/index.qtpl:56 func StreamIndex(qw422016 *qt422016.Writer) { //line template/index.qtpl:56 qw422016.N().S(` `) //line template/index.qtpl:57 streamlayout(qw422016, "", "", "", index_contents(), "") //line template/index.qtpl:57 qw422016.N().S(` `) //line template/index.qtpl:58 } //line template/index.qtpl:58 func WriteIndex(qq422016 qtio422016.Writer) { //line template/index.qtpl:58 qw422016 := qt422016.AcquireWriter(qq422016) //line template/index.qtpl:58 StreamIndex(qw422016) //line template/index.qtpl:58 qt422016.ReleaseWriter(qw422016) //line template/index.qtpl:58 } //line template/index.qtpl:58 func Index() string { //line template/index.qtpl:58 qb422016 := qt422016.AcquireByteBuffer() //line template/index.qtpl:58 WriteIndex(qb422016) //line template/index.qtpl:58 qs422016 := string(qb422016.B) //line template/index.qtpl:58 qt422016.ReleaseByteBuffer(qb422016) //line template/index.qtpl:58 return qs422016 //line template/index.qtpl:58 }