MCPcopy
hub / github.com/samber/mo / ExampleOption_MustGet_some

Function ExampleOption_MustGet_some

option_example_test.go:147–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145}
146
147func ExampleOption_MustGet_some() {
148 some := Some(42)
149 result := some.MustGet()
150
151 fmt.Println(result)
152 // Output: 42
153}
154
155// func ExampleOption_MustGet_none() {
156// none := None[int]()

Callers

nothing calls this directly

Calls 2

SomeFunction · 0.85
MustGetMethod · 0.45

Tested by

no test coverage detected