Closed m110 closed 10 months ago
Hey, thanks for the project!
One thing I missed when working with Option is to convert it to a pointer easily. It's like the opposite of PointerToOption.
Option
PointerToOption
It would be useful when converting values for structs used for marshaling. In my case, it's OpenAPI-generated structs with fields like *string, etc.
*string
If you like the idea, I'll add examples and docs.
@samber any updates about this?
Sorry for the late review.
Let's merge ;)
I will update the doc and playground demo.
Hey, thanks for the project!
One thing I missed when working with
Option
is to convert it to a pointer easily. It's like the opposite ofPointerToOption
.It would be useful when converting values for structs used for marshaling. In my case, it's OpenAPI-generated structs with fields like
*string
, etc.If you like the idea, I'll add examples and docs.