From 1f52bf35fe87d976d0d0dfa9b3300fe5818db304 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BA=90=E6=96=87=E9=9B=A8?= <41315874+fumiama@users.noreply.github.com> Date: Sun, 26 Feb 2023 20:20:04 +0800 Subject: [PATCH] make lint happy --- apirun.go | 2 +- structrun.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apirun.go b/apirun.go index 69e4aa6..beb0774 100644 --- a/apirun.go +++ b/apirun.go @@ -92,7 +92,7 @@ func (r *Run) AddTab() *Run { // Font sets the font of the run func (r *Run) Font(ascii, hansi, hint string) *Run { r.RunProperties.Fonts = &RunFonts{ - Ascii: ascii, + ASCII: ascii, HAnsi: hansi, Hint: hint, } diff --git a/structrun.go b/structrun.go index c10a101..9070a91 100644 --- a/structrun.go +++ b/structrun.go @@ -185,7 +185,7 @@ func (r *RunProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) err // RunFonts specifies the fonts used in the text of a run. type RunFonts struct { XMLName xml.Name `xml:"w:rFonts,omitempty"` - Ascii string `xml:"w:ascii,attr,omitempty"` + ASCII string `xml:"w:ascii,attr,omitempty"` HAnsi string `xml:"w:hAnsi,attr,omitempty"` Hint string `xml:"w:hint,attr,omitempty"` } @@ -195,7 +195,7 @@ func (f *RunFonts) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { for _, attr := range start.Attr { switch attr.Name.Local { case "ascii": - f.Ascii = attr.Value + f.ASCII = attr.Value case "hAnsi": f.HAnsi = attr.Value case "hint":