Skip to content
Tool for embedding .ico & manifest resources in Go programs for Windows. ⛺
Branch: master
Clone or download
Latest commit b9f6b78 Mar 3, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
binutil more fixes, stop using erroneous pointers Dec 19, 2013
coff Fix Relocation.Type for amd64 Nov 3, 2015
ico ico: preparing to blindly copy ico data Dec 13, 2013
internal Updated variable names + copyright date Aug 31, 2017
rsrc Commented fmt.Prinlns in rsrc package Aug 31, 2017
.hgignore ico: WIP: reading palette for 8bpp icons Dec 12, 2013
AUTHORS Updated variable names + copyright date Aug 31, 2017
go.mod add mod file Mar 5, 2019


rsrc - Tool for embedding binary resources in Go programs.

INSTALL: go get


rsrc [-manifest FILE.exe.manifest] [-ico FILE.ico[,FILE2.ico...]] -o FILE.syso
  Generates a .syso file with specified resources embedded in .rsrc section.
  The .syso file can be linked by Go linker when building Win32 executables.
  Icon embedded this way will show up on application's .exe instead of empty icon.
  Manifest file embedded this way will be recognized and detected by Windows.

The generated *.syso files should get automatically recognized by 'go build'
command and linked into an executable/library, as long as there are any *.go
files in the same directory.

  -arch="386": architecture of output file - one of: 386, [EXPERIMENTAL: amd64]
  -data="": path to raw data file to embed [WARNING: useless for Go 1.4+]
  -ico="": comma-separated list of paths to .ico files to embed
  -manifest="": path to a Windows manifest file to embed
  -o="rsrc.syso": name of output COFF (.res or .syso) file

Based on ideas presented by Minux.

In case anything does not work, it'd be nice if you could report (either via Github
issues, or via email to, and please attach the input file(s)
which resulted in a problem, plus error message & symptoms, and/or any other details.

- fix or remove FIXMEs

  Copyright 2013-2017 The rsrc Authors.
You can’t perform that action at this time.