MCPcopy Create free account
hub / github.com/PatchMon/PatchMon / strPtr

Function strPtr

server-source-code/internal/handler/oidc.go:671–676  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

669}
670
671func strPtr(s string) *string {
672 if s == "" {
673 return nil
674 }
675 return &s
676}
677
678func extractHost(u string) string {
679 parsed, err := url.Parse(u)

Callers 4

CallbackMethod · 0.70
ImportFromEnvMethod · 0.70
createOidcUserMethod · 0.70
TestValidatePolicyInputFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestValidatePolicyInputFunction · 0.56