func Sendstatic(ctx *web.Context, val string) { file, _err := ioutil.ReadFile("static/" + val) if _err != nil { return } filetype := strings.Split(val, ".") ctx.ContentType(filetype[len(filetype)-1]) ctx.WriteString(string(file)) }