Parse parses the data from b using filename as information in the error messages.
(filename string, b []byte, opts ...Option)
| 24541 | // Parse parses the data from b using filename as information in the |
| 24542 | // error messages. |
| 24543 | func Parse(filename string, b []byte, opts ...Option) (any, error) { |
| 24544 | return newParser(filename, b, opts...).parse(g) |
| 24545 | } |
| 24546 | |
| 24547 | // position records a position in the text. |
| 24548 | type position struct { |