diff --git a/fileutil/file_test.go b/fileutil/file_test.go index 462867b..c5890d7 100644 --- a/fileutil/file_test.go +++ b/fileutil/file_test.go @@ -135,4 +135,4 @@ func TestReadFileByLine(t *testing.T) { if !reflect.DeepEqual(res, expected) { utils.LogFailedTestInfo(t, "ReadFileByLine", path, expected, res) } -} \ No newline at end of file +} diff --git a/function/function.go b/function/function.go index 1ece80e..109b8e6 100644 --- a/function/function.go +++ b/function/function.go @@ -49,7 +49,7 @@ func (f Fn) Curry(i interface{}) func(...interface{}) interface{} { // Compose compose the functions from right to left func Compose(fnList ...func(...interface{}) interface{}) func(...interface{}) interface{} { - return func(s... interface{}) interface{} { + return func(s ...interface{}) interface{} { f := fnList[0] restFn := fnList[1:] @@ -61,7 +61,6 @@ func Compose(fnList ...func(...interface{}) interface{}) func(...interface{}) in } } - // Delay make the function execution after delayed time func Delay(delay time.Duration, fn interface{}, args ...interface{}) { time.Sleep(delay)