Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed Jan 19, 2015
1 parent 9eb6a69 commit 076b86f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Package creates syso files with Version Info and Icon that the go build command

Make a copy of versioninfo.json and copy it into your working directory. Fill in all the values and then use the code below.

```
~~~ go
package main

import (
Expand Down Expand Up @@ -44,16 +44,16 @@ func main() {
fmt.Println("Could not parse the .json file")
}
}
```
~~~ go

## Add an icon
## Adding an icon

To add an icon as a resource in the syso file, set Icon to true and set IconPath to the name of the icon to embed. If the icon has multiple sizes, all of the sizes will be embedded.

```
~~~ go
// Enable icon embeddeding
vi.Icon = true

// Path to icon (same directory)
vi.IconPath = "icon.ico"
```
~~~ go

0 comments on commit 076b86f

Please sign in to comment.