StringP returns a pointer to a string whose pointee is same as the given string value.
(val string)
| 6 | |
| 7 | // StringP returns a pointer to a string whose pointee is same as the given string value. |
| 8 | func 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. |
no test coverage detected