1
0
mirror of https://github.com/fumiama/go-docx.git synced 2026-06-12 11:40:28 +08:00

fix #9: float point parse value

This commit is contained in:
源文雨
2023-07-10 14:36:09 +08:00
parent 1a682f16d9
commit 9f3162a90f
10 changed files with 162 additions and 199 deletions

View File

@@ -24,7 +24,6 @@ import (
"encoding/xml"
"io"
"reflect"
"strconv"
"strings"
)
@@ -289,7 +288,7 @@ func (r *RunProperties) UnmarshalXML(d *xml.Decoder, _ xml.StartElement) error {
if v == "" {
continue
}
value.Val, err = strconv.ParseInt(v, 10, 64)
value.Val, err = GetInt64(v)
if err != nil {
return err
}