MCPcopy Create free account
hub / github.com/google/go-cloud / queryParameterInt

Function queryParameterInt

pubsub/gcppubsubv2/gcppubsub.go:670–676  ·  view source on GitHub ↗
(value []string)

Source from the content-addressed store, hash-verified

668}
669
670func queryParameterInt(value []string) (int, error) {
671 if len(value) > 1 {
672 return 0, fmt.Errorf("expected only one parameter value, got: %v", len(value))
673 }
674
675 return strconv.Atoi(value[0])
676}

Callers 2

OpenTopicURLMethod · 0.70
OpenSubscriptionURLMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected