Skip to content

Commit

Permalink
localisation: improves ToString func
Browse files Browse the repository at this point in the history
  • Loading branch information
Seklfreak committed Mar 3, 2019
1 parent f56d252 commit 6a462e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions localisation/funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import (
"text/template"
"time"

"gitlab.com/Cacophony/go-kit/feed"

"github.com/pkg/errors"

humanize "github.com/dustin/go-humanize"
Expand Down Expand Up @@ -68,6 +70,8 @@ var (
return v, nil
case int:
return strconv.Itoa(v), nil
case feed.Status:
return string(v), nil
default:
return "", errors.New("unable to convert into string")
}
Expand Down

0 comments on commit 6a462e4

Please sign in to comment.