mirror of
https://github.com/IBM/fp-go.git
synced 2025-08-10 22:31:32 +02:00
fix: use endomorphism in optics
Signed-off-by: Dr. Carsten Leue <carsten.leue@de.ibm.com>
This commit is contained in:
@@ -58,10 +58,9 @@ var (
|
||||
|
||||
// WithValue creates a [FormBuilder] for a certain field
|
||||
func WithValue(name string) func(value string) Endomorphism {
|
||||
return F.Flow3(
|
||||
return F.Flow2(
|
||||
O.Of[string],
|
||||
AtValue(name).Set,
|
||||
ENDO.Of[func(url.Values) url.Values],
|
||||
)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user