mirror of
https://github.com/duke-git/lancet.git
synced 2026-02-12 00:32:27 +08:00
fmt: fix lint issue
This commit is contained in:
@@ -38,7 +38,7 @@ func Before(n int, fn interface{}) func(args ...interface{}) []reflect.Value {
|
|||||||
// Fn is for curry function which is func(...interface{}) interface{}
|
// Fn is for curry function which is func(...interface{}) interface{}
|
||||||
type Fn func(...interface{}) interface{}
|
type Fn func(...interface{}) interface{}
|
||||||
|
|
||||||
// Curry make a curryed function
|
// Curry make a curry function
|
||||||
func (f Fn) Curry(i interface{}) func(...interface{}) interface{} {
|
func (f Fn) Curry(i interface{}) func(...interface{}) interface{} {
|
||||||
return func(values ...interface{}) interface{} {
|
return func(values ...interface{}) interface{} {
|
||||||
v := append([]interface{}{i}, values...)
|
v := append([]interface{}{i}, values...)
|
||||||
|
|||||||
Reference in New Issue
Block a user