Documentation
¶
Index ¶
- func Find(buf []byte, cb func(found []byte) (back, stop bool))
- func JSON(buf []byte, cb func(value any) (stop bool))
- func Read(r io.Reader, cb func(b []byte) (back, stop bool))
- func ReadJSON(r io.Reader, cb func(value any) bool)
- func ReadSEN(r io.Reader, cb func(value any) bool)
- func SEN(buf []byte, cb func(value any) (stop bool))
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Find ¶
Find potential occurrence of SEN documents that are either maps or arrays. This is a best effort search to find potential SEN documents. It is possible that document will not parse without errors. The callback function should return a true back return value to back up to the next open character after the current start. If back is false scanning continues after the end of the found section. If stop is true then no further scanning is attempted and the function returns.
func JSON ¶
JSON finds occurrence of JSON documents that are either maps or arrays. The callback function should return true to stop discovering.
func Read ¶
Read finds potential occurrence of SEN documents that are either maps or arrays in a stream. This is a best effort search to find potential SEN documents. It is possible that document will not parse without errors. The callback function should return a true back return value to back up to the next open character after the current start. If back is false scanning continues after the end of the found section. If stop is true then no further scanning is attempted and the function returns.
func ReadJSON ¶
ReadJSON finds occurrence of JSON documents that are either maps or arrays in a stream. The callback function should return true to stop discovering.
Types ¶
This section is empty.