mirror of
https://github.com/oauth2-proxy/oauth2-proxy.git
synced 2024-11-28 09:08:44 +02:00
12 lines
212 B
Go
12 lines
212 B
Go
package validation
|
|
|
|
func prefixValues(prefix string, values ...string) []string {
|
|
msgs := []string{}
|
|
for _, value := range values {
|
|
if value != "" {
|
|
msgs = append(msgs, prefix+value)
|
|
}
|
|
}
|
|
return msgs
|
|
}
|