docx

package module
v0.0.0-...-61a3b2f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

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

File is a docx file.

func OpenFile

func OpenFile(name string) (*File, error)

OpenFile opens a docx.File from a file.

func OpenReader

func OpenReader(r io.Reader) (*File, error)

OpenReader opens a docx.File from a reader.

func OpenZip

func OpenZip(zr *zip.Reader) (*File, error)

OpenZip opens a docx.File from a zip reader.

func (*File) Document

func (a *File) Document() []byte

Document gets the document data.

func (*File) SetDocument

func (a *File) SetDocument(body []byte)

SetDocument sets the document data.

func (*File) Write

func (a *File) Write(w io.Writer) error

Write writes the docx to a writer.

func (*File) WriteFile

func (a *File) WriteFile(name string) error

WriteFile writes the docx to a file.

func (*File) WriteZip

func (a *File) WriteZip(zw *zip.Writer) error

WriteZip writes the docx to a zip writer.

Jump to

Keyboard shortcuts

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