summaryrefslogtreecommitdiff
path: root/utils.go
diff options
context:
space:
mode:
authorNikolaus Gotsche <n@softwarefools.com>2018-10-30 04:20:25 +0100
committerNikolaus Gotsche <n@softwarefools.com>2018-10-30 04:20:25 +0100
commit0e7ea506b76660c91fa9f479f7de9c79304ae0dc (patch)
tree93ac969c5999eed8a2a7d548f3cdb56da5dc20c7 /utils.go
parentaf56cfca0aca29efa7c507f75fabc2b090fbd4de (diff)
Import/Export ... thistime for real
Diffstat (limited to 'utils.go')
-rw-r--r--utils.go10
1 files changed, 10 insertions, 0 deletions
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