Skip to content

Conversation

@eandre
Copy link
Member

@eandre eandre commented Nov 22, 2025

This adds a new encore.dev/types/option package for Encore.go, with a new type option.Option[T] for representing optional values.

This improves Encore's support for representing optional types in APIs. It's also something that we've internally found to be useful again and again in large code bases, where it's difficult to keep track of whether a pointer value *T means the type is nullable or not.

@encore-cla
Copy link

encore-cla bot commented Nov 22, 2025

All committers have signed the CLA.

This adds a new `encore.dev/types/option` package for Encore.go,
with a new type option.Option[T] for representing optional values.

This improves Encore's support for representing optional types in APIs.
It's also something that we've internally found to be useful again and again
in large code bases, where it's difficult to keep track of whether a pointer value
*T means the type is nullable or not.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants