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
Constants ¶
View Source
const ( GradePrefix = "💯 Nova ocjena: " ExamPrefix = "⚠️ NAJAVLJEN ISPIT: " ReadingPrefix = "📚 Lektira: " FinalGradePrefix = "🎓 ZAKLJUČNA OCJENA: " )
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.