internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(ctx context.Context, opts BuildOptions) (*gobl.Envelope, error)

Build builds and validates a GOBL document from opts.

func Verify

func Verify(ctx context.Context, in io.Reader) error

Verify reads a GOBL document from in, and returns an error if there are any validation errors.

Types

type BuildOptions

type BuildOptions struct {
	Template  io.Reader
	Data      io.Reader
	SetYAML   map[string]string
	SetString map[string]string
	SetFile   map[string]string
}

BuildOptions are the options to pass to the Build function.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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