Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/abiosoft/mold
/ optionVal
Struct
optionVal
engine.go:308–311 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
306
}
307
308
type
optionVal[T any]
struct
{
309
val T
310
set bool
311
}
312
313
func
newVal[T any](val T) optionVal[T] {
314
return
optionVal[T]{val: val, set: true}
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected