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

Function convertStringToBigInt

pkg/github/params.go:283–289  ·  view source on GitHub ↗
(s string, def int64)

Source from the content-addressed store, hash-verified

281}
282
283func convertStringToBigInt(s string, def int64) (int64, error) {
284 v, err := strconv.ParseInt(s, 10, 64)
285 if err != nil {
286 return def, fmt.Errorf("failed to convert string %s to int64: %w", s, err)
287 }
288 return v, nil
289}
290
291// OptionalBigIntArrayParam is a helper function that can be used to fetch a requested parameter from the request.
292// It does the following checks:

Callers 2

OptionalBigIntArrayParamFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected