Beispiel #1
0
func (i *Index) Index(rr *cyder.RequestResponse) {
	rr.StatusCode(200)
	fmt.Fprintf(rr, "hello world from /")
}
Beispiel #2
0
func (f *Foo) Foobar(rr *cyder.RequestResponse) {
	rr.StatusCode(200)
	fmt.Fprintf(rr, "hello world from foobar")
}
Beispiel #3
0
func (f *Foo) Pope(rr *cyder.RequestResponse, a int) {
	rr.StatusCode(200)
	fmt.Fprintf(rr, "Pope: %d", a)
}
Beispiel #4
0
func (f *Foo) Index(rr *cyder.RequestResponse) {
	rr.StatusCode(200)
	fmt.Fprintf(rr, "hello world from index")
}