mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-02 11:43:40 +02:00
internal/redis/channel.go: Make Append() accept a variadic number of parameters.
This commit is contained in:
parent
0e19f6d146
commit
51af80d3aa
1 changed files with 2 additions and 2 deletions
|
|
@ -13,8 +13,8 @@ type ChannelInterface interface {
|
||||||
// Standard channel. Just a wrapper around string slice
|
// Standard channel. Just a wrapper around string slice
|
||||||
type Channel []string
|
type Channel []string
|
||||||
|
|
||||||
func (c *Channel) Append(name string) {
|
func (c *Channel) Append(name ...string) {
|
||||||
*c = append(*c, name)
|
*c = append(*c, name...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c Channel) String() string {
|
func (c Channel) String() string {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue