make new model for stringSlices allowOrigin helper

This commit is contained in:
Adrian Zuercher
2025-07-13 20:01:13 +02:00
parent 0f06128ce8
commit 5e1e4b9daf
2 changed files with 16 additions and 14 deletions

14
models/stringSlices.go Normal file
View File

@@ -0,0 +1,14 @@
package models
import "strings"
type StringSlice []string
func (s *StringSlice) String() string {
return strings.Join(*s, ",")
}
func (s *StringSlice) Set(value string) error {
*s = append(*s, value)
return nil
}