mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Chore: Update to latest Cortex * Fix typos Signed-off-by: Michel Hollands <[email protected]> * Use tempo prefix for dns provider registerer Signed-off-by: Michel Hollands <[email protected]> Co-authored-by: Michel Hollands <[email protected]>
18 lines
342 B
Go
18 lines
342 B
Go
package flagext
|
|
|
|
import "fmt"
|
|
|
|
// StringSlice is a slice of strings that implements flag.Value
|
|
type StringSlice []string
|
|
|
|
// String implements flag.Value
|
|
func (v StringSlice) String() string {
|
|
return fmt.Sprintf("%s", []string(v))
|
|
}
|
|
|
|
// Set implements flag.Value
|
|
func (v *StringSlice) Set(s string) error {
|
|
*v = append(*v, s)
|
|
return nil
|
|
}
|