13 lines
241 B
Go
13 lines
241 B
Go
package amo
|
|
|
|
type NextFunc[V any] func() (V, NextFunc[V], error)
|
|
|
|
func MakeNextFunc[V any](
|
|
href string,
|
|
fn func(string) (V, NextFunc[V], error),
|
|
) NextFunc[V] {
|
|
return NextFunc[V](func() (V, NextFunc[V], error){
|
|
return fn(href)
|
|
})
|
|
}
|
|
|