diff --git a/omaha.go b/omaha.go index 4d92824..bd16fe2 100644 --- a/omaha.go +++ b/omaha.go @@ -190,7 +190,7 @@ type Action struct { XMLName xml.Name `xml:"action"` Event string `xml:"event,attr"` ChromeOSVersion string `xml:"ChromeOSVersion,attr"` - sha256 string `xml:"sha256,attr"` + Sha256 string `xml:"sha256,attr"` NeedsAdmin bool `xml:"needsadmin,attr"` IsDelta bool `xml:"IsDelta,attr"` } diff --git a/omaha_test.go b/omaha_test.go index dac291b..ac60ee3 100644 --- a/omaha_test.go +++ b/omaha_test.go @@ -58,7 +58,7 @@ func ExampleOmaha_NewResponse() { m.AddPackage("+LXvjiaPkeYDLHoNKlf9qbJwvnk=", "update.gz", "67546213", true) a := m.AddAction("postinstall") a.ChromeOSVersion = "9999.0.0" - a.sha256 = "0VAlQW3RE99SGtSB5R4m08antAHO8XDoBMKDyxQT/Mg=" + a.Sha256 = "0VAlQW3RE99SGtSB5R4m08antAHO8XDoBMKDyxQT/Mg=" a.NeedsAdmin = false a.IsDelta = true @@ -85,7 +85,7 @@ func ExampleOmaha_NewResponse() { // // // - // + // // // //