mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 09:05:30 +00:00
Akteure beginning
This commit is contained in:
8
functions/string.go
Normal file
8
functions/string.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package functions
|
||||
|
||||
func FirstLetter(s string) string {
|
||||
if len(s) == 0 {
|
||||
return ""
|
||||
}
|
||||
return string(s[:1])
|
||||
}
|
||||
Reference in New Issue
Block a user