github.com/wtfutil/wtf@v0.43.0/modules/newrelic/client/array.go (about) 1 package newrelic 2 3 // An Array is a type expected by the NewRelic API that differs from a comma- 4 // separated list. When passing GET params that expect an 'Array' type with 5 // one to many values, the expected format is "key=val1&key=val2" but an 6 // argument with zero to many values is of the form "key=val1,val2", and 7 // neither can be used in the other's place, so we have to differentiate 8 // somehow. 9 type Array struct { 10 arr []string 11 }