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

Function queryParameterBool

pubsub/gcppubsub/gcppubsub.go:649–655  ·  view source on GitHub ↗
(value []string)

Source from the content-addressed store, hash-verified

647}
648
649func queryParameterBool(value []string) (bool, error) {
650 if len(value) > 1 {
651 return false, fmt.Errorf("expected only one parameter value, got: %v", len(value))
652 }
653
654 return strconv.ParseBool(value[0])
655}

Callers 1

OpenSubscriptionURLMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected