samber / mo

🦄 Monads and popular FP abstractions, powered by Go 1.18+ Generics (Option, Result, Either...)
https://pkg.go.dev/github.com/samber/mo
MIT License
2.47k stars 80 forks source link

feat: marshal/unmarshal JSON #9

Closed EwenQuim closed 1 year ago

EwenQuim commented 1 year ago

Allows to use Option fields in an API, which is really useful for PATCH requests for example.

EwenQuim commented 1 year ago

Very good comments. I will work on it next week :)

Also, I worked on sql Driver / Value support. Will do a PR next week too

samber commented 1 year ago

Good news. I was wondering what was necessary for SQL drivers too 😆

samber commented 1 year ago

I made some changes and merged. 🎉

Please add support for SQL drivers in a new PR.