func (self *Gok) Redirect(newUrl string) {
    self.shouldRedirect = true
    self.Header("Location:"+newUrl)
    self.w.WriteHeader(http.StatusMovedPermanently)
}
redirects the request to a new url
package main
import "fmt"
import "net/http"
import "net/url"
import "time"
import "strings"
import "os"
import "io"
import "bytes"
type Gok struct {
    w http.ResponseWriter
    r *http.Request
    getValues url.Values
    response *bytes.Buffer
    deadMsg string
    shouldRedirect bool
};
func (self *Gok) Echo(a ...interface{}) {
    if self.response != nil {
        fmt.Fprint(self.response, a...)
    }
}