format

package
v0.22.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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

func PlainFormatSubject(sb *strings.Builder, user, subject string, code msgtypes.EventCode)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL