git.iko.soy/typeable/oauth2-proxy
on 8564ab6 help sign in
typeable/oauth2-proxy/string_array.go
19 lines 393 B history raw
1package main
3import (
4 "strings"
5)
7// StringArray is a type alias for a slice of strings
8type StringArray []string
10// Set appends a string to the StringArray
11func (a *StringArray) Set(s string) error {
12 *a = append(*a, s)
13 return nil
16// String joins elements of the StringArray into a single comma separated string
17func (a *StringArray) String() string {
18 return strings.Join(*a, ",")