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