From f9446611116fbc44c758f0f58e93d0981c224588 Mon Sep 17 00:00:00 2001 From: kolaente Date: Sun, 15 Sep 2019 16:06:49 +0200 Subject: [PATCH] Fixed lint --- pkg/models/{metri.go => metric.go} | 2 ++ 1 file changed, 2 insertions(+) rename pkg/models/{metri.go => metric.go} (89%) diff --git a/pkg/models/metri.go b/pkg/models/metric.go similarity index 89% rename from pkg/models/metri.go rename to pkg/models/metric.go index daecf64..a6ff37c 100644 --- a/pkg/models/metri.go +++ b/pkg/models/metric.go @@ -2,6 +2,7 @@ package models import "github.com/labstack/gommon/log" +// Metric is the structure for metrics type Metric struct { ID int64 `xorm:"pk autoincr" json:"id" form:"id"` Kcoins int64 `xorm:"bigint(11)"` @@ -9,6 +10,7 @@ type Metric struct { CreatedUnix int64 `xorm:"created"` } +// AddMetric saves a new metric point func AddMetric() { allCommunites := []Community{} err := x.Find(&allCommunites)