// +build !no_templategen // Code generated by Gosora. More below: /* This file was automatically generated by the software. Please don't edit it as your changes may be overwritten at any moment. */ package tmpl import "../../common" import "io" import "strconv" // nolint func init() { common.TmplPtrMap["o_alert"] = Template_alert } // nolint func Template_alert(tmpl_alert_vars common.AlertItem, w io.Writer) error { if tmpl_alert_vars.Avatar != "" { w.Write(alert_frags[0]) w.Write([]byte(tmpl_alert_vars.Avatar)) w.Write(alert_frags[1]) w.Write([]byte(strconv.Itoa(tmpl_alert_vars.ASID))) w.Write(alert_frags[2]) w.Write([]byte(tmpl_alert_vars.Path)) w.Write(alert_frags[3]) w.Write([]byte(tmpl_alert_vars.Message)) w.Write(alert_frags[4]) } else { w.Write(alert_frags[5]) w.Write([]byte(tmpl_alert_vars.Path)) w.Write(alert_frags[6]) w.Write([]byte(tmpl_alert_vars.Message)) w.Write(alert_frags[7]) } return nil }