1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-06 13:42:28 +08:00

doc: format code in doc file

This commit is contained in:
dudaodong
2023-06-13 15:08:40 +08:00
parent 1e5b69e9bf
commit 69a797f8ed
8 changed files with 81 additions and 81 deletions

View File

@@ -323,16 +323,16 @@ import (
func main() {
addOne := func(x interface{}) interface{} {
return x.(int) + 1
}
double := func(x interface{}) interface{} {
return 2 * x.(int)
}
square := func(x interface{}) interface{} {
return x.(int) * x.(int)
}
return x.(int) + 1
}
double := func(x interface{}) interface{} {
return 2 * x.(int)
}
square := func(x interface{}) interface{} {
return x.(int) * x.(int)
}
f := function.Pipeline(addOne, double, square)
f := function.Pipeline(addOne, double, square)
result := fn(2)