From 0e7ea506b76660c91fa9f479f7de9c79304ae0dc Mon Sep 17 00:00:00 2001 From: Nikolaus Gotsche Date: Tue, 30 Oct 2018 04:20:25 +0100 Subject: Import/Export ... thistime for real --- utils.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'utils.go') diff --git a/utils.go b/utils.go index 03ef940..c9b0aad 100644 --- a/utils.go +++ b/utils.go @@ -86,6 +86,16 @@ func frame(text string, head bool) (out string) { return } +// return the int as a string +func Sint(in int) (string) { + return fmt.Sprint(in) +} + +// return the float as a string +func Sflo(in float64) (string) { + return fmt.Sprintf("%.2f",in) +} + func getGitTag() string { var ( cmdOut []byte -- cgit v1.2.3