mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-28 16:45:32 +00:00
18 lines
233 B
Go
18 lines
233 B
Go
package functions
|
|
|
|
import "html/template"
|
|
|
|
func FirstLetter(s string) string {
|
|
if len(s) == 0 {
|
|
return ""
|
|
}
|
|
return string(s[:1])
|
|
}
|
|
|
|
func Safe(s string) template.HTML {
|
|
if len(s) == 0 {
|
|
return ""
|
|
}
|
|
return template.HTML(s)
|
|
}
|