Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

format code by running make fmt #3011

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions bitmap_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type BitMapCmdable interface {
BitOpAnd(ctx context.Context, destKey string, keys ...string) *IntCmd
BitOpOr(ctx context.Context, destKey string, keys ...string) *IntCmd
BitOpXor(ctx context.Context, destKey string, keys ...string) *IntCmd
BitOpNot(ctx context.Context, destKey string, key string) *IntCmd
BitOpNot(ctx context.Context, destKey, key string) *IntCmd
BitPos(ctx context.Context, key string, bit int64, pos ...int64) *IntCmd
BitPosSpan(ctx context.Context, key string, bit int8, start, end int64, span string) *IntCmd
BitField(ctx context.Context, key string, values ...interface{}) *IntSliceCmd
Expand Down Expand Up @@ -42,8 +42,10 @@ type BitCount struct {
Unit string // BYTE(default) | BIT
}

const BitCountIndexByte string = "BYTE"
const BitCountIndexBit string = "BIT"
const (
BitCountIndexByte string = "BYTE"
BitCountIndexBit string = "BIT"
)

func (c cmdable) BitCount(ctx context.Context, key string, bitCount *BitCount) *IntCmd {
args := make([]any, 2, 5)
Expand Down Expand Up @@ -90,7 +92,7 @@ func (c cmdable) BitOpXor(ctx context.Context, destKey string, keys ...string) *
return c.bitOp(ctx, "xor", destKey, keys...)
}

func (c cmdable) BitOpNot(ctx context.Context, destKey string, key string) *IntCmd {
func (c cmdable) BitOpNot(ctx context.Context, destKey, key string) *IntCmd {
return c.bitOp(ctx, "not", destKey, key)
}

Expand Down
7 changes: 4 additions & 3 deletions bitmap_commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package redis_test
import (
. "github.com/bsm/ginkgo/v2"
. "github.com/bsm/gomega"

"github.com/redis/go-redis/v9"
)

Expand Down Expand Up @@ -31,7 +32,7 @@ var _ = Describe("BitCountBite", func() {
})

It("bit count bite", func() {
var expected = []bitCountExpected{
expected := []bitCountExpected{
{0, 0, 0},
{0, 1, 1},
{0, 2, 1},
Expand Down Expand Up @@ -71,7 +72,7 @@ var _ = Describe("BitCountByte", func() {
})

It("bit count byte", func() {
var expected = []bitCountExpected{
expected := []bitCountExpected{
{0, 0, 1},
{0, 1, 3},
}
Expand All @@ -84,7 +85,7 @@ var _ = Describe("BitCountByte", func() {
})

It("bit count byte with no unit specified", func() {
var expected = []bitCountExpected{
expected := []bitCountExpected{
{0, 0, 1},
{0, 1, 3},
}
Expand Down
4 changes: 2 additions & 2 deletions cluster_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type ClusterCmdable interface {
ClusterResetHard(ctx context.Context) *StatusCmd
ClusterInfo(ctx context.Context) *StringCmd
ClusterKeySlot(ctx context.Context, key string) *IntCmd
ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd
ClusterGetKeysInSlot(ctx context.Context, slot, count int) *StringSliceCmd
ClusterCountFailureReports(ctx context.Context, nodeID string) *IntCmd
ClusterCountKeysInSlot(ctx context.Context, slot int) *IntCmd
ClusterDelSlots(ctx context.Context, slots ...int) *StatusCmd
Expand Down Expand Up @@ -101,7 +101,7 @@ func (c cmdable) ClusterKeySlot(ctx context.Context, key string) *IntCmd {
return cmd
}

func (c cmdable) ClusterGetKeysInSlot(ctx context.Context, slot int, count int) *StringSliceCmd {
func (c cmdable) ClusterGetKeysInSlot(ctx context.Context, slot, count int) *StringSliceCmd {
cmd := NewStringSliceCmd(ctx, "cluster", "getkeysinslot", slot, count)
_ = c(ctx, cmd)
return cmd
Expand Down
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -2020,7 +2020,7 @@ type XInfoConsumer struct {

var _ Cmder = (*XInfoConsumersCmd)(nil)

func NewXInfoConsumersCmd(ctx context.Context, stream string, group string) *XInfoConsumersCmd {
func NewXInfoConsumersCmd(ctx context.Context, stream, group string) *XInfoConsumersCmd {
return &XInfoConsumersCmd{
baseCmd: baseCmd{
ctx: ctx,
Expand Down
1 change: 0 additions & 1 deletion commands_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ var _ = Describe("Commands", func() {
defer client2.Close()
clientInfo = client2.ClientInfo(ctx).Val()
Expect(clientInfo.LibName).To(ContainSubstring("go-redis(suffix,"))

})

It("should ConfigGet", func() {
Expand Down
2 changes: 1 addition & 1 deletion error.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func isBadConn(err error, allowTimeout bool, addr string) bool {
return true
}

func isMovedError(err error) (moved bool, ask bool, addr string) {
func isMovedError(err error) (moved, ask bool, addr string) {
if !isRedisError(err) {
return
}
Expand Down
2 changes: 1 addition & 1 deletion extra/rediscmd/rediscmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func appendArg(b []byte, v interface{}) []byte {
}
}

func appendUTF8String(dst []byte, src []byte) []byte {
func appendUTF8String(dst, src []byte) []byte {
if isSimple(src) {
dst = append(dst, src...)
return dst
Expand Down
2 changes: 1 addition & 1 deletion extra/rediscmd/rediscmd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ func TestGinkgo(t *testing.T) {

var _ = Describe("AppendArg", func() {
DescribeTable("...",
func(src string, wanted string) {
func(src, wanted string) {
b := appendArg(nil, src)
Expect(string(b)).To(Equal(wanted))
},
Expand Down
16 changes: 8 additions & 8 deletions gears_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ type GearsCmdable interface {
TFunctionDelete(ctx context.Context, libName string) *StatusCmd
TFunctionList(ctx context.Context) *MapStringInterfaceSliceCmd
TFunctionListArgs(ctx context.Context, options *TFunctionListOptions) *MapStringInterfaceSliceCmd
TFCall(ctx context.Context, libName string, funcName string, numKeys int) *Cmd
TFCallArgs(ctx context.Context, libName string, funcName string, numKeys int, options *TFCallOptions) *Cmd
TFCallASYNC(ctx context.Context, libName string, funcName string, numKeys int) *Cmd
TFCallASYNCArgs(ctx context.Context, libName string, funcName string, numKeys int, options *TFCallOptions) *Cmd
TFCall(ctx context.Context, libName, funcName string, numKeys int) *Cmd
TFCallArgs(ctx context.Context, libName, funcName string, numKeys int, options *TFCallOptions) *Cmd
TFCallASYNC(ctx context.Context, libName, funcName string, numKeys int) *Cmd
TFCallASYNCArgs(ctx context.Context, libName, funcName string, numKeys int, options *TFCallOptions) *Cmd
}

type TFunctionLoadOptions struct {
Expand Down Expand Up @@ -98,15 +98,15 @@ func (c cmdable) TFunctionListArgs(ctx context.Context, options *TFunctionListOp

// TFCall - invoke a function.
// For more information - https://redis.io/commands/tfcall/
func (c cmdable) TFCall(ctx context.Context, libName string, funcName string, numKeys int) *Cmd {
func (c cmdable) TFCall(ctx context.Context, libName, funcName string, numKeys int) *Cmd {
lf := libName + "." + funcName
args := []interface{}{"TFCALL", lf, numKeys}
cmd := NewCmd(ctx, args...)
_ = c(ctx, cmd)
return cmd
}

func (c cmdable) TFCallArgs(ctx context.Context, libName string, funcName string, numKeys int, options *TFCallOptions) *Cmd {
func (c cmdable) TFCallArgs(ctx context.Context, libName, funcName string, numKeys int, options *TFCallOptions) *Cmd {
lf := libName + "." + funcName
args := []interface{}{"TFCALL", lf, numKeys}
if options != nil {
Expand All @@ -124,15 +124,15 @@ func (c cmdable) TFCallArgs(ctx context.Context, libName string, funcName string

// TFCallASYNC - invoke an asynchronous JavaScript function (coroutine).
// For more information - https://redis.io/commands/TFCallASYNC/
func (c cmdable) TFCallASYNC(ctx context.Context, libName string, funcName string, numKeys int) *Cmd {
func (c cmdable) TFCallASYNC(ctx context.Context, libName, funcName string, numKeys int) *Cmd {
lf := fmt.Sprintf("%s.%s", libName, funcName)
args := []interface{}{"TFCALLASYNC", lf, numKeys}
cmd := NewCmd(ctx, args...)
_ = c(ctx, cmd)
return cmd
}

func (c cmdable) TFCallASYNCArgs(ctx context.Context, libName string, funcName string, numKeys int, options *TFCallOptions) *Cmd {
func (c cmdable) TFCallASYNCArgs(ctx context.Context, libName, funcName string, numKeys int, options *TFCallOptions) *Cmd {
lf := fmt.Sprintf("%s.%s", libName, funcName)
args := []interface{}{"TFCALLASYNC", lf, numKeys}
if options != nil {
Expand Down
2 changes: 1 addition & 1 deletion generic_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ type GenericCmdable interface {
Touch(ctx context.Context, keys ...string) *IntCmd
TTL(ctx context.Context, key string) *DurationCmd
Type(ctx context.Context, key string) *StatusCmd
Copy(ctx context.Context, sourceKey string, destKey string, db int, replace bool) *IntCmd
Copy(ctx context.Context, sourceKey, destKey string, db int, replace bool) *IntCmd

Scan(ctx context.Context, cursor uint64, match string, count int64) *ScanCmd
ScanType(ctx context.Context, cursor uint64, match string, count int64, keyType string) *ScanCmd
Expand Down
4 changes: 2 additions & 2 deletions geo_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type GeoCmdable interface {
GeoSearch(ctx context.Context, key string, q *GeoSearchQuery) *StringSliceCmd
GeoSearchLocation(ctx context.Context, key string, q *GeoSearchLocationQuery) *GeoSearchLocationCmd
GeoSearchStore(ctx context.Context, key, store string, q *GeoSearchStoreQuery) *IntCmd
GeoDist(ctx context.Context, key string, member1, member2, unit string) *FloatCmd
GeoDist(ctx context.Context, key, member1, member2, unit string) *FloatCmd
GeoHash(ctx context.Context, key string, members ...string) *StringSliceCmd
}

Expand Down Expand Up @@ -120,7 +120,7 @@ func (c cmdable) GeoSearchStore(ctx context.Context, key, store string, q *GeoSe
}

func (c cmdable) GeoDist(
ctx context.Context, key string, member1, member2, unit string,
ctx context.Context, key, member1, member2, unit string,
) *FloatCmd {
if unit == "" {
unit = "km"
Expand Down
2 changes: 1 addition & 1 deletion internal/arg.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func AppendArg(b []byte, v interface{}) []byte {
}
}

func appendUTF8String(dst []byte, src []byte) []byte {
func appendUTF8String(dst, src []byte) []byte {
dst = append(dst, src...)
return dst
}
2 changes: 1 addition & 1 deletion internal/hscan/hscan.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func Struct(dst interface{}) (StructValue, error) {

// Scan scans the results from a key-value Redis map result set to a destination struct.
// The Redis keys are matched to the struct's field with the `redis` tag.
func Scan(dst interface{}, keys []interface{}, vals []interface{}) error {
func Scan(dst interface{}, keys, vals []interface{}) error {
if len(keys) != len(vals) {
return errors.New("args should have the same number of keys and vals")
}
Expand Down
2 changes: 1 addition & 1 deletion internal/hscan/structmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ type StructValue struct {
value reflect.Value
}

func (s StructValue) Scan(key string, value string) error {
func (s StructValue) Scan(key, value string) error {
field, ok := s.spec.m[key]
if !ok {
return nil
Expand Down
4 changes: 2 additions & 2 deletions internal/util/strconv.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ func Atoi(b []byte) (int, error) {
return strconv.Atoi(BytesToString(b))
}

func ParseInt(b []byte, base int, bitSize int) (int64, error) {
func ParseInt(b []byte, base, bitSize int) (int64, error) {
return strconv.ParseInt(BytesToString(b), base, bitSize)
}

func ParseUint(b []byte, base int, bitSize int) (uint64, error) {
func ParseUint(b []byte, base, bitSize int) (uint64, error) {
return strconv.ParseUint(BytesToString(b), base, bitSize)
}

Expand Down
2 changes: 1 addition & 1 deletion iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var _ = Describe("ScanIterator", func() {
return err
}

extraSeed := func(n int, m int) error {
extraSeed := func(n, m int) error {
pipe := client.Pipeline()
for i := 1; i <= m; i++ {
pipe.Set(ctx, fmt.Sprintf("A%02d", i), "x", 0).Err()
Expand Down
4 changes: 2 additions & 2 deletions json.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ type JSONCmdable interface {
JSONForget(ctx context.Context, key, path string) *IntCmd
JSONGet(ctx context.Context, key string, paths ...string) *JSONCmd
JSONGetWithArgs(ctx context.Context, key string, options *JSONGetArgs, paths ...string) *JSONCmd
JSONMerge(ctx context.Context, key, path string, value string) *StatusCmd
JSONMerge(ctx context.Context, key, path, value string) *StatusCmd
JSONMSetArgs(ctx context.Context, docs []JSONSetArgs) *StatusCmd
JSONMSet(ctx context.Context, params ...interface{}) *StatusCmd
JSONMGet(ctx context.Context, path string, keys ...string) *JSONSliceCmd
Expand Down Expand Up @@ -450,7 +450,7 @@ func (c cmdable) JSONGetWithArgs(ctx context.Context, key string, options *JSONG

// JSONMerge merges a given JSON value into matching paths.
// For more information, see https://redis.io/commands/json.merge
func (c cmdable) JSONMerge(ctx context.Context, key, path string, value string) *StatusCmd {
func (c cmdable) JSONMerge(ctx context.Context, key, path, value string) *StatusCmd {
args := []interface{}{"JSON.MERGE", key, path, value}
cmd := NewStatusCmd(ctx, args...)
_ = c(ctx, cmd)
Expand Down
8 changes: 4 additions & 4 deletions list_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ type ListCmdable interface {
LMPop(ctx context.Context, direction string, count int64, keys ...string) *KeyValuesCmd
LPop(ctx context.Context, key string) *StringCmd
LPopCount(ctx context.Context, key string, count int) *StringSliceCmd
LPos(ctx context.Context, key string, value string, args LPosArgs) *IntCmd
LPosCount(ctx context.Context, key string, value string, count int64, args LPosArgs) *IntSliceCmd
LPos(ctx context.Context, key, value string, args LPosArgs) *IntCmd
LPosCount(ctx context.Context, key, value string, count int64, args LPosArgs) *IntSliceCmd
LPush(ctx context.Context, key string, values ...interface{}) *IntCmd
LPushX(ctx context.Context, key string, values ...interface{}) *IntCmd
LRange(ctx context.Context, key string, start, stop int64) *StringSliceCmd
Expand Down Expand Up @@ -152,7 +152,7 @@ type LPosArgs struct {
Rank, MaxLen int64
}

func (c cmdable) LPos(ctx context.Context, key string, value string, a LPosArgs) *IntCmd {
func (c cmdable) LPos(ctx context.Context, key, value string, a LPosArgs) *IntCmd {
args := []interface{}{"lpos", key, value}
if a.Rank != 0 {
args = append(args, "rank", a.Rank)
Expand All @@ -166,7 +166,7 @@ func (c cmdable) LPos(ctx context.Context, key string, value string, a LPosArgs)
return cmd
}

func (c cmdable) LPosCount(ctx context.Context, key string, value string, count int64, a LPosArgs) *IntSliceCmd {
func (c cmdable) LPosCount(ctx context.Context, key, value string, count int64, a LPosArgs) *IntSliceCmd {
args := []interface{}{"lpos", key, value, "count", count}
if a.Rank != 0 {
args = append(args, "rank", a.Rank)
Expand Down
4 changes: 2 additions & 2 deletions options.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ type Options struct {
Password string
// CredentialsProvider allows the username and password to be updated
// before reconnecting. It should return the current username and password.
CredentialsProvider func() (username string, password string)
CredentialsProvider func() (username, password string)

// CredentialsProviderContext is an enhanced parameter of CredentialsProvider,
// done to maintain API compatibility. In the future,
// there might be a merge between CredentialsProviderContext and CredentialsProvider.
// There will be a conflict between them; if CredentialsProviderContext exists, we will ignore CredentialsProvider.
CredentialsProviderContext func(ctx context.Context) (username string, password string, err error)
CredentialsProviderContext func(ctx context.Context) (username, password string, err error)

// Database to be selected after connecting to the server.
DB int
Expand Down
4 changes: 2 additions & 2 deletions osscluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ type ClusterOptions struct {
Protocol int
Username string
Password string
CredentialsProvider func() (username string, password string)
CredentialsProviderContext func(ctx context.Context) (username string, password string, err error)
CredentialsProvider func() (username, password string)
CredentialsProviderContext func(ctx context.Context) (username, password string, err error)

MaxRetries int
MinRetryBackoff time.Duration
Expand Down
16 changes: 8 additions & 8 deletions probabilistic.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ type ProbabilisticCmdable interface {
CFMExists(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
CFReserve(ctx context.Context, key string, capacity int64) *StatusCmd
CFReserveWithArgs(ctx context.Context, key string, options *CFReserveOptions) *StatusCmd
CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd
CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd
CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd
CFReserveExpansion(ctx context.Context, key string, capacity, expansion int64) *StatusCmd
CFReserveBucketSize(ctx context.Context, key string, capacity, bucketsize int64) *StatusCmd
CFReserveMaxIterations(ctx context.Context, key string, capacity, maxiterations int64) *StatusCmd
CFScanDump(ctx context.Context, key string, iterator int64) *ScanDumpCmd
CFLoadChunk(ctx context.Context, key string, iterator int64, data interface{}) *StatusCmd

Expand All @@ -61,7 +61,7 @@ type ProbabilisticCmdable interface {
TopKListWithCount(ctx context.Context, key string) *MapStringIntCmd
TopKQuery(ctx context.Context, key string, elements ...interface{}) *BoolSliceCmd
TopKReserve(ctx context.Context, key string, k int64) *StatusCmd
TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd
TopKReserveWithOptions(ctx context.Context, key string, k, width, depth int64, decay float64) *StatusCmd

TDigestAdd(ctx context.Context, key string, elements ...float64) *StatusCmd
TDigestByRank(ctx context.Context, key string, rank ...uint64) *FloatSliceCmd
Expand Down Expand Up @@ -496,7 +496,7 @@ func (c cmdable) CFReserve(ctx context.Context, key string, capacity int64) *Sta

// CFReserveExpansion creates an empty Cuckoo filter with the specified capacity and expansion rate.
// For more information - https://redis.io/commands/cf.reserve/
func (c cmdable) CFReserveExpansion(ctx context.Context, key string, capacity int64, expansion int64) *StatusCmd {
func (c cmdable) CFReserveExpansion(ctx context.Context, key string, capacity, expansion int64) *StatusCmd {
args := []interface{}{"CF.RESERVE", key, capacity, "EXPANSION", expansion}
cmd := NewStatusCmd(ctx, args...)
_ = c(ctx, cmd)
Expand All @@ -505,7 +505,7 @@ func (c cmdable) CFReserveExpansion(ctx context.Context, key string, capacity in

// CFReserveBucketSize creates an empty Cuckoo filter with the specified capacity and bucket size.
// For more information - https://redis.io/commands/cf.reserve/
func (c cmdable) CFReserveBucketSize(ctx context.Context, key string, capacity int64, bucketsize int64) *StatusCmd {
func (c cmdable) CFReserveBucketSize(ctx context.Context, key string, capacity, bucketsize int64) *StatusCmd {
args := []interface{}{"CF.RESERVE", key, capacity, "BUCKETSIZE", bucketsize}
cmd := NewStatusCmd(ctx, args...)
_ = c(ctx, cmd)
Expand All @@ -514,7 +514,7 @@ func (c cmdable) CFReserveBucketSize(ctx context.Context, key string, capacity i

// CFReserveMaxIterations creates an empty Cuckoo filter with the specified capacity and maximum number of iterations.
// For more information - https://redis.io/commands/cf.reserve/
func (c cmdable) CFReserveMaxIterations(ctx context.Context, key string, capacity int64, maxiterations int64) *StatusCmd {
func (c cmdable) CFReserveMaxIterations(ctx context.Context, key string, capacity, maxiterations int64) *StatusCmd {
args := []interface{}{"CF.RESERVE", key, capacity, "MAXITERATIONS", maxiterations}
cmd := NewStatusCmd(ctx, args...)
_ = c(ctx, cmd)
Expand Down Expand Up @@ -956,7 +956,7 @@ func (c cmdable) TopKReserve(ctx context.Context, key string, k int64) *StatusCm
// TopKReserveWithOptions creates an empty Top-K filter with the specified number of top items to keep and additional options.
// This function allows for specifying additional options such as width, depth and decay.
// For more information - https://redis.io/commands/topk.reserve/
func (c cmdable) TopKReserveWithOptions(ctx context.Context, key string, k int64, width, depth int64, decay float64) *StatusCmd {
func (c cmdable) TopKReserveWithOptions(ctx context.Context, key string, k, width, depth int64, decay float64) *StatusCmd {
args := []interface{}{"TOPK.RESERVE", key, k, width, depth, decay}

cmd := NewStatusCmd(ctx, args...)
Expand Down
2 changes: 1 addition & 1 deletion scripting_commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func (c cmdable) FCallRO(ctx context.Context, function string, keys []string, ar
return cmd
}

func fcallArgs(command string, function string, keys []string, args ...interface{}) []interface{} {
func fcallArgs(command, function string, keys []string, args ...interface{}) []interface{} {
cmdArgs := make([]interface{}, 3+len(keys), 3+len(keys)+len(args))
cmdArgs[0] = command
cmdArgs[1] = function
Expand Down
Loading
Loading