docx

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2016 License: CC0-1.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	OpencontrolDir string
	TemplatePath   string
	ExportPath     string
}

Config contains data for docx template export configurations

func (*Config) BuildDocx

func (config *Config) BuildDocx() error

BuildDocx exports a Docx ssp based on a template

type OpenControlDocx

type OpenControlDocx struct {
	*models.OpenControl
}

OpenControlDocx struct is an extension of models.OpenControl that adds a template path and export path.

func (*OpenControlDocx) FormatAllNarratives

func (openControl *OpenControlDocx) FormatAllNarratives(standardKey string, controlKey string) string

FormatAllNarratives returns a control formatted for docx with all the narratives

func (*OpenControlDocx) FormatNarrative

func (openControl *OpenControlDocx) FormatNarrative(standardKey string, controlKey string, sectionKeys ...string) string

FormatNarrative returns a control formatted for docx with only the specified narrative section(s)

func (*OpenControlDocx) FormatParameter

func (openControl *OpenControlDocx) FormatParameter(standardKey string, controlKey string, sectionKeys ...string) string

FormatParameter fills in the parameter for a given parameter, standard and control.

func (*OpenControlDocx) FormatResponsibleRoles

func (openControl *OpenControlDocx) FormatResponsibleRoles(standardKey string, controlKey string) string

FormatResponsibleRoles fills in the responsible role for each component for a given standard and control.

Jump to

Keyboard shortcuts

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