docx

package
v0.0.0-debug-20260702 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPlainText

func GetPlainText(data []byte) ([]byte, error)

func ParseText

func ParseText(filename string) (string, error)

func ParseTextFromReader

func ParseTextFromReader(reader io.ReaderAt, size int64) (string, error)

Types

type Paragraph

type Paragraph struct {
	Style Style `xml:"pPr>pStyle"`
	Rows  []Row `xml:"r"`
}

type Row

type Row struct {
	Texts []string `xml:"t"`
}

type Style

type Style struct {
	Val string `xml:"val,attr"`
}

type WordDocument

type WordDocument struct {
	Paragraphs []Paragraph
}

func Parse

func Parse(doc []byte) (WordDocument, error)

func (WordDocument) AsText

func (w WordDocument) AsText() string

methods

Jump to

Keyboard shortcuts

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