1
0
mirror of https://github.com/oauth2-proxy/oauth2-proxy.git synced 2025-01-10 04:18:14 +02:00
oauth2-proxy/string_array.go

17 lines
215 B
Go
Raw Normal View History

2012-12-11 04:59:23 +03:00
package main
import (
2014-11-09 21:51:10 +02:00
"strings"
2012-12-11 04:59:23 +03:00
)
type StringArray []string
func (a *StringArray) Set(s string) error {
*a = append(*a, s)
return nil
}
func (a *StringArray) String() string {
2014-11-09 21:51:10 +02:00
return strings.Join(*a, ",")
2012-12-11 04:59:23 +03:00
}