From 171b7c70d705bf1f2bd4db2b36f2aa9d477b527a Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Thu, 11 Apr 2013 12:08:55 -0700 Subject: [PATCH] fix(omaha): Capitalize sha256 so it is exported Capitalization is needed so that things are exported in Go. Oops. --- omaha.go | 2 +- omaha_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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() { // // // - // + // // // //