Documentation ¶
Index ¶
- func EmbedIcon(c *coff.File, icon *FileResource) error
- func EmbedManifest(c *coff.File, manifest *FileResource) error
- func EmbedVersionInfo(c *coff.File, v *VersionInfoResource) error
- type Config
- type FileResource
- type VersionInfoFixed
- type VersionInfoResource
- type VersionInfoStringTable
- type VersionInfoStrings
- type VersionInfoTranslation
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmbedIcon ¶
func EmbedIcon(c *coff.File, icon *FileResource) error
EmbedIcon embeds an icon into c.
func EmbedManifest ¶
func EmbedManifest(c *coff.File, manifest *FileResource) error
EmbedManifest embeds a manifest into c.
func EmbedVersionInfo ¶
func EmbedVersionInfo(c *coff.File, v *VersionInfoResource) error
EmbedVersionInfo embeds a version info resource.
Types ¶
type Config ¶
type Config struct { Icons []*FileResource Manifest *FileResource VersionInfos []*VersionInfoResource }
Config is a syso config data.
type FileResource ¶
FileResource represents a file resource that can be found at Path.
func (*FileResource) Validate ¶
func (r *FileResource) Validate() error
Validate returns an error if the resource is invalid.
type VersionInfoFixed ¶
VersionInfoFixed holds fixed information that is language and codepage independent, like file version or product version.
func (*VersionInfoFixed) Validate ¶
func (f *VersionInfoFixed) Validate() error
Validate returns data validation result.
type VersionInfoResource ¶
type VersionInfoResource struct { ID *int Name *string Fixed *VersionInfoFixed StringTables []*VersionInfoStringTable Translations []*VersionInfoTranslation }
VersionInfoResource represents a version info resource.
func (*VersionInfoResource) Validate ¶
func (r *VersionInfoResource) Validate() error
Validate returns an error if the resource is invalid.
type VersionInfoStringTable ¶
type VersionInfoStringTable struct { Language *string Charset *string Strings *VersionInfoStrings }
VersionInfoStringTable holds string table associated with language and charset pair. See https://docs.microsoft.com/en-us/windows/win32/menurc/versioninfo-resource#remarks for details about language and charset.
func (*VersionInfoStringTable) Validate ¶
func (st *VersionInfoStringTable) Validate() error
Validate returns data validation result.
type VersionInfoStrings ¶
type VersionInfoStrings struct { Comments *string CompanyName *string FileDescription *string FileVersion *string InternalName *string LegalCopyright *string LegalTradeMarks *string OriginalFilename *string PrivateBuild *string ProductName *string ProductVersion *string SpecialBuild *string }
VersionInfoStrings holds strings which describes the application.
type VersionInfoTranslation ¶
VersionInfoTranslation holds language-codepage pairs that application supports.
func (*VersionInfoTranslation) Validate ¶
func (t *VersionInfoTranslation) Validate() error
Validate returns data validation result.
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
pkg
|
|
coff
Package coff provides COFF(Common Object File Format)-related functionalities.
|
Package coff provides COFF(Common Object File Format)-related functionalities. |
common
Package common provides common utilities used by syso tool.
|
Package common provides common utilities used by syso tool. |