samdoc

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

README

SamDOC

samdoc is a package to replace placeholders in docx file and converting it to pdf.

Getting Started

Dependencies
  • libreoffice
  • ubuntu

License

This project is licensed under the GNU GPLv3 License - see the LICENSE.md file for details

Documentation

Index

Constants

View Source
const (
	PREFIX  = "samdoc-"
	TEMPDIR = "/tmp"
)

Variables

View Source
var (
	ErrModelMustBePointerToStruct = errors.New("provided model must be a pointer to struct")
	ErrQueryFieldMustBeStruct     = errors.New("query field must be struct")
	ErrInvalidPopIndex            = errors.New("invalid index for popping")
	ErrInvalidField               = errors.New("invalid field")
)

Functions

func NewTempFile

func NewTempFile() (*os.File, error)

Types

type FieldQuery

type FieldQuery []string

func (FieldQuery) Pop

func (fq FieldQuery) Pop(indx int) FieldQuery

type Structure

type Structure struct {
	// contains filtered or unexported fields
}

func NewStructure

func NewStructure(model interface{}) (*Structure, error)

func (*Structure) Get

func (s *Structure) Get(qry FieldQuery) (string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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