Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/samber/mo
/ ExampleOption_Size_some
Function
ExampleOption_Size_some
option_example_test.go:109–115 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
107
}
108
109
func
ExampleOption_Size_some() {
110
some := Some(42)
111
result := some.Size()
112
113
fmt.Println(result)
114
// Output: 1
115
}
116
117
func
ExampleOption_Size_none() {
118
none := None[int]()
Callers
nothing calls this directly
Calls
2
Some
Function · 0.85
Size
Method · 0.80
Tested by
no test coverage detected