format

package
v0.9.14 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 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