Documentation
¶
Index ¶
- Constants
- func HTMLMsg(username, subject string, code msgtypes.EventCode, ...) string
- func MarkupMsg(username, subject string, code msgtypes.EventCode, ...) string
- func PlainFormatSubject(sb *strings.Builder, user, subject string, code msgtypes.EventCode)
- func PlainMsg(username, subject string, code msgtypes.EventCode, ...) string
- func PlainSubject(user, subject string, code msgtypes.EventCode) string
Constants ¶
View Source
const ( GradePrefix = "💯 Nova ocjena: " ExamPrefix = "⚠️ NAJAVLJEN ISPIT: " ReadingPrefix = "📚 Lektira: " FinalGradePrefix = "🎓 ZAKLJUČNA OCJENA: " NationalExamPrefix = "✍️ Nacionalni ispit: " )
Variables ¶
This section is empty.
Functions ¶
func HTMLMsg ¶
func HTMLMsg(username, subject string, code msgtypes.EventCode, descriptions, grade []string) string
HTMLMsg formats grade report as preformatted HTML block in a string.
func MarkupMsg ¶
func MarkupMsg(username, subject string, code msgtypes.EventCode, descriptions, grade []string) string
MarkupMsg formats grade report as preformatted Markup block in a string.
func PlainFormatSubject ¶
PlainFormatSubject adds cleartext header containing prefix (event/grade), username and subject.
func PlainMsg ¶
func PlainMsg(username, subject string, code msgtypes.EventCode, descriptions, grade []string) string
PlainMsg formats grade report as cleartext block in a string.
func PlainSubject ¶
PlainSubject returns the prefix + user + " / " + subject header as a string, using the package builder pool so callers do not pay a per-call strings.Builder allocation in hot paths (e.g. per-message embed titles).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.