docparse

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package docparse implements parsers to transform input into separated documents.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFile

func FromFile(filepath string, format Format) ([]string, error)

FromFile parses a file to a slice of separated documents.

func FromStdin

func FromStdin(format Format) ([]string, error)

FromStdin parses stdin to a slice of separated documents.

Types

type Format

type Format int8

Format represents the format of the documents to be parsed.

const (
	YAML Format = 1
	JSON Format = 2
)

Supported formats.

Jump to

Keyboard shortcuts

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