-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from Microland/master
Contribution from Microland
- Loading branch information
Showing
10 changed files
with
103 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,63 @@ | ||
package shared | ||
|
||
import ( | ||
|
||
) | ||
|
||
type Software struct { | ||
DisplayName string `json:"displayName"` | ||
DisplayVersion string `json:"displayVersion"` | ||
Arch string `json:"arch"` | ||
R_DisplayName string `json:"displayName"` | ||
R_DisplayVersion string `json:"displayVersion"` | ||
R_Arch string `json:"arch"` | ||
R_Pub string `json:"publisher"` | ||
R_InsDate string `json:"installDate"` | ||
R_ESize uint64 `json:"estimatedSize"` | ||
R_Contact string `json:"Contact"` | ||
R_HelpLink string `json:"HelpLink"` | ||
R_InstallSource string `json:"InstallSource"` | ||
R_VersionMajor uint64 `json:"VersionMajor"` | ||
R_VersionMinor uint64 `json:"VersionMinor"` | ||
} | ||
|
||
func (s *Software) Name() (string) { | ||
return s.DisplayName | ||
return s.R_DisplayName | ||
} | ||
|
||
func (s *Software) Version() (string) { | ||
return s.DisplayVersion | ||
return s.R_DisplayVersion | ||
} | ||
|
||
func (s *Software) Architecture() (string) { | ||
return s.Arch | ||
return s.R_Arch | ||
} | ||
|
||
func (s *Software) Publisher() (string) { | ||
return s.R_Pub | ||
} | ||
|
||
func (s *Software) InstallDate() (string) { | ||
return s.R_InsDate | ||
} | ||
|
||
func (s *Software) EstimatedSize() (uint64) { | ||
return s.R_ESize | ||
} | ||
|
||
func (s *Software) Contact() (string) { | ||
return s.R_Contact | ||
} | ||
|
||
func (s *Software) HelpLink() (string) { | ||
return s.R_HelpLink | ||
} | ||
|
||
func (s *Software) InstallSource() (string) { | ||
return s.R_InstallSource | ||
} | ||
|
||
func (s *Software) VersionMajor() (uint64) { | ||
return s.R_VersionMajor | ||
} | ||
|
||
func (s *Software) VersionMinor() (uint64) { | ||
return s.R_VersionMinor | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters