func fileHandler(w http.ResponseWriter, r *http.Request) error {
	err := serveAsset(w, r)
	if err == nil {
		return nil
	}
	return serveFile(w, r)
}
Serve static files (assets, images etc)
package app
import (
	"net/http"
	"os"
	"path"
	"strings"
	"github.com/fragmenta/server"
	"github.com/fragmenta/server/config"
	"github.com/fragmenta/server/log"
	"github.com/fragmenta/view"
)