Skip to content

Commit

Permalink
Made sizedReader public
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed Feb 29, 2016
1 parent fa48753 commit 1ecafd8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions goversioninfo.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,11 @@ type StringFileInfo struct {
// Helpers
// *****************************************************************************

type sizedReader struct {
type SizedReader struct {
*bytes.Buffer
}

func (s sizedReader) Size() int64 {
func (s SizedReader) Size() int64 {
return int64(s.Buffer.Len())
}

Expand Down Expand Up @@ -188,7 +188,7 @@ func (vi *VersionInfo) WriteSyso(filename string) error {
coff := coff.NewRSRC()

// ID 16 is for Version Information
coff.AddResource(16, 1, sizedReader{&vi.Buffer})
coff.AddResource(16, 1, SizedReader{&vi.Buffer})

// If icon is enabled
if vi.IconPath != "" {
Expand Down

0 comments on commit 1ecafd8

Please sign in to comment.