MCPcopy Index your code
hub / github.com/github/github-mcp-server / ToStringPtr

Function ToStringPtr

pkg/github/tools.go:345–350  ·  view source on GitHub ↗

ToStringPtr converts a string to a *string pointer. Returns nil if the string is empty.

(s string)

Source from the content-addressed store, hash-verified

343// ToStringPtr converts a string to a *string pointer.
344// Returns nil if the string is empty.
345func ToStringPtr(s string) *string {
346 if s == "" {
347 return nil
348 }
349 return &s
350}
351
352// GenerateToolsetsHelp generates the help text for the toolsets flag
353func GenerateToolsetsHelp() string {

Callers 1

ListDependabotAlertsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected