docx

package
v0.0.0-...-dc8b9ba Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Docx

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

Docx struct that contains data from a docx

func (*Docx) Close

func (d *Docx) Close() error

Close the document

func (*Docx) GetContent

func (d *Docx) GetContent() string

GetContent returns the string content

func (*Docx) ReadFile

func (d *Docx) ReadFile(path string) error

ReadFile func reads a docx file

func (*Docx) UpdateContent

func (d *Docx) UpdateContent(newContent string)

UpdateContent updates the content string

func (*Docx) WriteToFile

func (d *Docx) WriteToFile(path string, data string) error

WriteToFile writes the changes to a new file

Jump to

Keyboard shortcuts

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