MCPcopy
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
109func ExampleOption_Size_some() {
110 some := Some(42)
111 result := some.Size()
112
113 fmt.Println(result)
114 // Output: 1
115}
116
117func ExampleOption_Size_none() {
118 none := None[int]()

Callers

nothing calls this directly

Calls 2

SomeFunction · 0.85
SizeMethod · 0.80

Tested by

no test coverage detected