format

package
v0.16.7 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GradePrefix = "Nova ocjena: "       // grade title prefix
	EventPrefix = "⚠ NAJAVLJEN ISPIT: " // exam title prefix
)

Variables

This section is empty.

Functions

func HTMLMsg

func HTMLMsg(username, subject string, isExam bool, descriptions, grade []string) string

HTMLMsg formats grade report as preformatted HTML block in a string.

func MarkupMsg

func MarkupMsg(username, subject string, isExam bool, 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, isExam bool)

PlainFormatSubject adds cleartext header containing prefix (event/grade), username and subject.

func PlainMsg

func PlainMsg(username, subject string, isExam bool, 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