option-go
A generic optional type library for golang like the rust option enum (by joetifa2003)
go-optional
A library that provides Go Generics friendly "optional" features. (by moznion)
option-go | go-optional | |
---|---|---|
2 | 2 | |
7 | 136 | |
- | - | |
10.0 | 5.2 | |
over 1 year ago | 18 days ago | |
Go | Go | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
option-go
Posts with mentions or reviews of option-go.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-10.
-
What “sucks” about Golang?
Here's one that uses generics, here's a more elaborate one.
- Option - a generic package to define optional types without pointers (like rust enum)
go-optional
Posts with mentions or reviews of go-optional.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-03-10.
-
What “sucks” about Golang?
Here's one that uses generics, here's a more elaborate one.
-
Published go-optional: Generics Go friendly optional/option type library
You can see the basic usage of this in the synopsis and examples. Currently, this brings the following utility option functions:
What are some alternatives?
When comparing option-go and go-optional you can also consider the following projects:
optional - Optional is a library of optional Go types
exhaustive - Check exhaustiveness of switch statements of enum-like constants in Go source code.
gobetter - GO Better - code generator for struct required fields
std - An enhanced version of the standard library based the new Generics feature.
optional-types
go-octokit - Simple Go wrapper for the GitHub API