Add validation for Headers struct

This commit is contained in:
Joel Speed
2020-11-07 17:16:54 +00:00
parent 2dc0d1e7ee
commit d26c65ba8d
4 changed files with 120 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
package validation
func prefixValues(prefix string, values ...string) []string {
msgs := []string{}
for _, value := range values {
if value != "" {
msgs = append(msgs, prefix+value)
}
}
return msgs
}