MCPcopy
hub / github.com/grpc-ecosystem/grpc-gateway / StringP

Function StringP

runtime/proto2_convert.go:8–10  ·  view source on GitHub ↗

StringP returns a pointer to a string whose pointee is same as the given string value.

(val string)

Source from the content-addressed store, hash-verified

6
7// StringP returns a pointer to a string whose pointee is same as the given string value.
8func StringP(val string) (*string, error) {
9 return proto.String(val), nil
10}
11
12// BoolP parses the given string representation of a boolean value,
13// and returns a pointer to a bool whose value is same as the parsed value.

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected