Versions in this module Expand all Collapse all v0 v0.1.0 Mar 28, 2024 Changes in this version + const HYPERLINK_STYLE + const REL_HYPERLINK + const REL_TARGETMODE + const TEMP_CONTENT + const TEMP_DOCPROPS_APP + const TEMP_DOCPROPS_CORE + const TEMP_REL + const TEMP_WORD_STYLE + const TEMP_WORD_THEME_THEME + const XMLNS + const XMLNS_R + const XMLNS_W + type Body struct + Paragraphs []*Paragraph + XMLName xml.Name + type Color struct + Val string + XMLName xml.Name + type Document struct + Body *Body + XMLName xml.Name + XMLR string + XMLW string + type DocxLib struct + DocRelation Relationships + Document Document + func New() *DocxLib + func Parse(reader io.ReaderAt, size int64) (doc *DocxLib, err error) + func ParseBytes(b []byte) (doc *DocxLib, err error) + func (f *DocxLib) AddParagraph() *Paragraph + func (f *DocxLib) Paragraphs() []*Paragraph + func (f *DocxLib) References(id string) (href string, err error) + func (f *DocxLib) Write(writer io.Writer) (err error) + type Hyperlink struct + ID string + Run Run + XMLName xml.Name + func (r *Hyperlink) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Paragraph struct + Data []ParagraphChild + XMLName xml.Name + func (p *Paragraph) AddLink(text string, link string) *Hyperlink + func (p *Paragraph) AddText(text string) *Run + func (p *Paragraph) Children() (ret []ParagraphChild) + func (p *Paragraph) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type ParagraphChild struct + Link *Hyperlink + Properties *RunProperties + Run *Run + type Relationship struct + ID string + Target string + TargetMode string + Type string + XMLName xml.Name + type Relationships struct + Relationships []*Relationship + XMLName xml.Name + Xmlns string + type Run struct + InstrText string + RunProperties *RunProperties + Text *Text + XMLName xml.Name + func (r *Run) Color(color string) *Run + func (r *Run) Size(size int) *Run + func (r *Run) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type RunProperties struct + Color *Color + RunStyle *RunStyle + Size *Size + Style *Style + XMLName xml.Name + type RunStyle struct + Val string + XMLName xml.Name + func (r *RunStyle) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + type Size struct + Val int + XMLName xml.Name + type Style struct + Val string + XMLName xml.Name + type Text struct + Text string + XMLName xml.Name + XMLSpace string + func (r *Text) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error