mirror of
https://gitlab.com/mbugroup/lti-api.git
synced 2026-05-20 21:41:55 +00:00
14 lines
349 B
Go
14 lines
349 B
Go
package utils
|
|
|
|
import "strings"
|
|
|
|
// NormalizeTrim returns the input string without leading/trailing whitespace.
|
|
func NormalizeTrim(value string) string {
|
|
return strings.TrimSpace(value)
|
|
}
|
|
|
|
// NormalizeUpper returns the trimmed, upper-case version of value.
|
|
func NormalizeUpper(value string) string {
|
|
return strings.ToUpper(NormalizeTrim(value))
|
|
}
|