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

doc: normalize documents

This commit is contained in:
dudaodong
2023-02-06 11:42:03 +08:00
parent ebe494051b
commit 8e3911833d
24 changed files with 382 additions and 382 deletions

View File

@@ -46,7 +46,7 @@ import (
func After(n int, fn any) func(args ...any) []reflect.Value
```
<b>例:</b>
<b>例:</b>
```go
package main
@@ -79,7 +79,7 @@ func main() {
func Before(n int, fn any) func(args ...any) []reflect.Value
```
<b>例:</b>
<b>例:</b>
```go
package main
@@ -117,7 +117,7 @@ type CurryFn[T any] func(...T) T
func (cf CurryFn[T]) New(val T) func(...T) T
```
<b>例:</b>
<b>例:</b>
```go
package main
@@ -156,7 +156,7 @@ func main() {
func Compose[T any](fnList ...func(...T) T) func(...T) T
```
<b>例:</b>
<b>例:</b>
```go
package main
@@ -194,7 +194,7 @@ func main() {
func Debounced(fn func(), duration time.Duration) func()
```
<b>例:</b>
<b>例:</b>
```go
package main
@@ -244,7 +244,7 @@ func main() {
func Delay(delay time.Duration, fn any, args ...any)
```
<b>例:</b>
<b>例:</b>
```go
package main
@@ -276,7 +276,7 @@ func main() {
func Schedule(d time.Duration, fn any, args ...any) chan bool
```
<b>例:</b>
<b>例:</b>
```go
package main
@@ -315,7 +315,7 @@ func main() {
func Pipeline[T any](funcs ...func(T) T) func(T) T
```
<b>例:</b>
<b>例:</b>
```go
package main
@@ -366,7 +366,7 @@ func (w *Watcher) Reset() //reset the watcher
func (w *Watcher) GetElapsedTime() time.Duration //get the elapsed time of function execution
```
<b>例:</b>
<b>例:</b>
```go
package main