@@ -30,8 +30,9 @@ func (res *Res) Send(txt string) {
fmt.Fprint(res.w, txt)
}
-func (res *Res) File(filePath string) error {
+func (res *Res) File(filePath string) {
http.ServeFile(res.w, res.r, filePath)
+
// file, err := os.Open(filePath)
// if err != nil {
// utils.Err(err)