Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeFormTemplate ¶
func MakeFormTemplate(data interface{}, fileName string, formLayout paperworkforms.FormLayout, formType services.FormType) (services.FormTemplate, error)
MakeFormTemplate creates form template with all needed parameters from handler
func NewFormCreator ¶
func NewFormCreator(fileStorer FileStorer, formFiller FormFiller) services.FormCreator
NewFormCreator creates a new struct with service dependencies
Types ¶
type FileStorer ¶
FileStorer is an interface for fileStorer implementation
type FormFiller ¶
type FormFiller interface { AppendPage(io.ReadSeeker, map[string]paperworkforms.FieldPos, interface{}) error Output(io.Writer) error }
FormFiller is an interface for formFiller implementation
Click to show internal directories.
Click to hide internal directories.