MCPcopy Index your code
hub / github.com/coder/coder / portSourceLabel

Function portSourceLabel

scripts/develop/main.go:1312–1321  ·  view source on GitHub ↗
(source portSource, offset int)

Source from the content-addressed store, hash-verified

1310}
1311
1312func portSourceLabel(source portSource, offset int) string {
1313 switch source {
1314 case portSourceExplicit:
1315 return fmt.Sprintf("explicit, offset +%d skipped", offset)
1316 case portSourceOffset:
1317 return fmt.Sprintf("offset +%d", offset)
1318 default:
1319 return fmt.Sprintf("default, offset +%d", offset)
1320 }
1321}
1322
1323func printBanner(ctx context.Context, logger slog.Logger, cfg *devConfig, prometheusServerStarted bool) {
1324 ifaces := []string{"localhost"}

Callers 1

portBannerLineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected