git.iko.soy/typeable/oauth2-proxy
on master help sign in
Implement Getter interface for StringArray (#104)

This commit fix the issue #98

commita656435d009d4ccb2d114802855dbb464e88dfd1 authorBerjou <maxime.joubert@epita.fr> dateWed 20 Mar 2019, 14:58 (8 years ago) parent8cc5fbf
1 file changed+5
string_array.go+5
string_array.go+5
@@ -7,6 +7,11 @@ import (
77// StringArray is a type alias for a slice of strings
88type StringArray []string
99
10+// Get returns the slice of strings
11+func (a *StringArray) Get() interface{} {
12+ return []string(*a)
13+}
14+
1015// Set appends a string to the StringArray
1116func (a *StringArray) Set(s string) error {
1217 *a = append(*a, s)