func readfile_dev(c *golax.Context, filename string) {
	PREFIX := "static/"

	bytes, err := ioutil.ReadFile(PREFIX + filename)
	if nil != err {
		c.Error(404, "File '"+filename+"' not found")
		return
	}

	addcontenttype(c, filename)

	fmt.Fprint(c.Response, string(bytes))
}
/**
 * Only for develop purposes
 */
Only for develop purposes
/ ** * Only for develop purposes * /
func readfile_dev(c *golax.Context, filename string) {
	PREFIX := "static/"
	bytes, err := ioutil.ReadFile(PREFIX + filename)
	if nil != err {
		c.Error(404, "File '"+filename+"' not found")
		return
	}
	addcontenttype(c, filename)
	fmt.Fprint(c.Response, string(bytes))
}
func readfile_dev ( c * golax . Context , filename string ) { PREFIX := " " bytes , err := ioutil . ReadFile ( PREFIX + filename ) if nil != err { c . Error ( 404 , " " + filename + " " ) return } addcontenttype ( c , filename ) fmt . Fprint ( c . Response , string ( bytes ) ) }
Only for develop purposes
Only for develop purposes