MCPcopy Index your code
hub / github.com/bootdotdev/bootdev / FromContext

Function FromContext

version/context.go:11–17  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

9}
10
11func FromContext(ctx context.Context) *VersionInfo {
12 if c, ok := ctx.Value(ContextKey).(*VersionInfo); ok {
13 return c
14 }
15
16 return nil
17}

Callers 3

checkVersionStatusFunction · 0.92
requireUpdatedFunction · 0.92
upgrade.goFile · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected