mirror of
https://github.com/fumiama/go-docx.git
synced 2026-06-05 07:40:24 +08:00
edit README
This commit is contained in:
11
README.md
11
README.md
@@ -27,9 +27,18 @@ This is a variant optimized and expanded by fumiama. The original repo is [gonfv
|
|||||||
The Introduction above is copied from the original repo. I had evolved that repo again to fit my needs. Here are the supported functions now.
|
The Introduction above is copied from the original repo. I had evolved that repo again to fit my needs. Here are the supported functions now.
|
||||||
|
|
||||||
- [x] Parse and save document
|
- [x] Parse and save document
|
||||||
- [x] Edit simple text (color, size, alignment, ...)
|
- [x] Edit text (color, size, alignment, link, ...)
|
||||||
- [x] Edit picture
|
- [x] Edit picture
|
||||||
- [x] Edit table
|
- [x] Edit table
|
||||||
|
- [x] Edit shape
|
||||||
|
- [x] Edit canvas
|
||||||
|
- [x] Edit group
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
```bash
|
||||||
|
go run cmd/main/main.go -u
|
||||||
|
```
|
||||||
|
And you will see two files generated under `pwd` with the same contents as below.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ func (b *Body) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
|||||||
|
|
||||||
// Document <w:document>
|
// Document <w:document>
|
||||||
type Document struct {
|
type Document struct {
|
||||||
XMLName xml.Name `xml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main document"`
|
XMLName xml.Name `xml:"w:document"`
|
||||||
XMLW string `xml:"xmlns:w,attr"` // cannot be unmarshalled in
|
XMLW string `xml:"xmlns:w,attr"` // cannot be unmarshalled in
|
||||||
XMLR string `xml:"xmlns:r,attr,omitempty"` // cannot be unmarshalled in
|
XMLR string `xml:"xmlns:r,attr,omitempty"` // cannot be unmarshalled in
|
||||||
XMLWP string `xml:"xmlns:wp,attr,omitempty"` // cannot be unmarshalled in
|
XMLWP string `xml:"xmlns:wp,attr,omitempty"` // cannot be unmarshalled in
|
||||||
|
|||||||
Reference in New Issue
Block a user