isJSONNull returns true when the raw JSON encodes a literal `null`, with any surrounding whitespace tolerated.
(raw json.RawMessage)
| 226 | // isJSONNull returns true when the raw JSON encodes a literal `null`, with |
| 227 | // any surrounding whitespace tolerated. |
| 228 | func isJSONNull(raw json.RawMessage) bool { |
| 229 | s := strings.TrimSpace(string(raw)) |
| 230 | return s == "null" |
| 231 | } |
| 232 | |
| 233 | // compile-time assertion that ToolBinding messages descriptors implement what we need. |
| 234 | var _ proto.Message = (*dynamicpb.Message)(nil) |