▲ 15 ▼ Optional Types with go generate
This post is about a library and command I created called optional with the help of go generate. The code is here: https://github.com/markphelps/optional by @makr_a_phelps
Register to comment or vote on this story
Could someone give an example as to where, what for and how you'd use this?
Optional types are usually used in error handling. I think this is more an interesting experiment/tutorial than a thing you'd use in production, because your errors are all over your app probably using custom types, though, I guess you could wrap every custom type with this too.