Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ Then use by piping a file into the utility and capturing the output. You must pr

$GOPATH/bin/2goarray MyArray mypackage < myimage.png > myimage.go

Or in PowerShell, to loop over a folder of icons and output a .go file corresponding to the icon's name:

```powershell
$2goarray = Join-Path $Env:GOPATH '\bin\2goarray.exe'
Get-ChildItem *.ico | Foreach-Object {
Get-Content $_.FullName | Invoke-Expression $2goarray $_.BaseName "mypackage" | Out-File -FilePath $($_.BaseName + ".go") -Encoding utf8
}
```

This will output something like:

package mypackage
Expand Down