Skip to content

Commit

Permalink
Uploaders to JSON transformation via String. #71
Browse files Browse the repository at this point in the history
  • Loading branch information
smira committed Mar 22, 2015
1 parent b4b03f2 commit 1c4b44e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deb/uploaders.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ type Uploaders struct {
Rules []UploadersRule `json:"rules"`
}

func (u *Uploaders) String() string {
b, _ := json.Marshal(u)
return string(b)
}

// NewUploadersFromFile loads Uploaders structue from .json file
func NewUploadersFromFile(path string) (*Uploaders, error) {
uploaders := &Uploaders{}
Expand Down

0 comments on commit 1c4b44e

Please sign in to comment.