fix(omaha): Capitalize sha256 so it is exported

Capitalization is needed so that things are exported in Go. Oops.
This commit is contained in:
Brandon Philips 2013-04-11 12:08:55 -07:00
parent def5edd1b7
commit 171b7c70d7
2 changed files with 3 additions and 3 deletions

View file

@ -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"`
}

View file

@ -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() {
// <package hash="+LXvjiaPkeYDLHoNKlf9qbJwvnk=" name="update.gz" size="67546213" required="true"></package>
// </packages>
// <actions>
// <action event="postinstall" ChromeOSVersion="" needsadmin="false" IsDelta="false"></action>
// <action event="postinstall" ChromeOSVersion="9999.0.0" sha256="0VAlQW3RE99SGtSB5R4m08antAHO8XDoBMKDyxQT/Mg=" needsadmin="false" IsDelta="true"></action>
// </actions>
// </manifest>
// </app>