NewJSONParser 创建默认解析器。
()
| 35 | |
| 36 | // NewJSONParser 创建默认解析器。 |
| 37 | func NewJSONParser() *JSONParser { |
| 38 | return &JSONParser{} |
| 39 | } |
| 40 | |
| 41 | // Parse 实现结构化解析。 |
| 42 | func (p *JSONParser) Parse(ctx context.Context, text string, spec OutputSpec) (*ParseResult, error) { |
no outgoing calls
no test coverage detected