Documentation ¶
Index ¶
- Constants
- func ByteSrc(d []byte) ([]map[string]any, error)
- func DecodeData(r io.Reader, ct string, data *[]map[string]any) error
- func DecodeDataO(r io.Reader) ([]map[string]any, error)
- func DecodeJSON(r io.Reader, data *[]map[string]any) error
- func DecodeNDJSON(r io.Reader, data *[]map[string]any) error
- func DirSrc(dir string) ([]map[string]any, error)
- func FileSrc(files ...string) ([]map[string]any, error)
- func ReaderSrc(r io.Reader) ([]map[string]any, error)
- func StringSliceSrc(data []string) []map[string]any
- func StringSrc(d string) ([]map[string]any, error)
- type Data
- type File
Constants ¶
View Source
const ( NdJSON = `application/x-ndjson` JSON = `application/json` )
Variables ¶
This section is empty.
Functions ¶
func DecodeDataO ¶
DecodeDataO decodes data from a io.Reader.
func DecodeNDJSON ¶
DecodeNDJSON decodes data from a io.Reader.
func StringSliceSrc ¶
StringSliceSrc takes a string slice and returns data for for indexing with the default field of 'title'.
Types ¶
Click to show internal directories.
Click to hide internal directories.