1 Star 1 Fork 0

JNan-QQ/simple-go-docx

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
run.go 415 Bytes
一键复制 编辑 原始数据 按行查看 历史
jiangnan 提交于 2023-04-04 17:31 +08:00 . 修改 return err
package run
import (
"encoding/xml"
"gitee.com/jn-qq/simple-go-docx/styles"
)
type Run struct {
XMLName xml.Name `xml:"w:r,omitempty"`
Space string `xml:"xml:space,attr,omitempty"`
Style *styles.RunProperties `xml:"w:rPr,omitempty"`
InstrText string `xml:"w:instrText,omitempty"`
Text string `xml:"w:t"`
}
// SetText 设置文本
func (r *Run) SetText(text string) *Run {
r.Text = text
return r
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/jn-qq/simple-go-docx.git
git@gitee.com:jn-qq/simple-go-docx.git
jn-qq
simple-go-docx
simple-go-docx
v1.0.1

搜索帮助