discover

package
v1.28.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Find

func Find(buf []byte, cb func(found []byte) (back, stop bool))

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

func JSON(buf []byte, cb func(value any) (stop bool))

JSON finds occurrence of JSON documents that are either maps or arrays. The callback function should return true to stop discovering.

func Read

func Read(r io.Reader, cb func(b []byte) (back, stop bool))

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

func ReadJSON(r io.Reader, cb func(value any) bool)

ReadJSON finds occurrence of JSON documents that are either maps or arrays in a stream. The callback function should return true to stop discovering.

func ReadSEN

func ReadSEN(r io.Reader, cb func(value any) bool)

ReadSEN finds occurrence of SEN documents that are either maps or arrays in a stream. The callback function should return true to stop discovering.

func SEN

func SEN(buf []byte, cb func(value any) (stop bool))

SEN finds occurrence of SEN documents that are either maps or arrays. The callback function should return true to stop discovering.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL