From 5b2fe65d14198af8c838deba0eea42342af9fa25 Mon Sep 17 00:00:00 2001 From: Sergei Antipov Date: Fri, 12 Feb 2016 13:29:57 +0600 Subject: [PATCH] go fmt fixes --- plugins/outputs/zabbix/zabbix.go | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/plugins/outputs/zabbix/zabbix.go b/plugins/outputs/zabbix/zabbix.go index d07cb4648..5e27e29e2 100644 --- a/plugins/outputs/zabbix/zabbix.go +++ b/plugins/outputs/zabbix/zabbix.go @@ -15,36 +15,36 @@ import ( // ZabbixMetric class. type ZabbixMetric struct { - Host string - Key string - Value string + Host string + Key string + Value string Timestamp int64 } // ZabbixMetric class constructor. func NewZabbixMetric(host, key, value string) *ZabbixMetric { m := &ZabbixMetric{ - Host: host, - Key: key, - Value: value, - Timestamp: time.Now().Unix() + Host: host, + Key: key, + Value: value, + Timestamp: time.Now().Unix(), } return m } // ZabbixPacket class. type ZabbixPacket struct { - Request string - Data []*ZabbixMetric - Timestamp int64 + Request string + Data []*ZabbixMetric + Timestamp int64 } // ZabbixPacket class cunstructor. func NewZabbixPacket(data []*ZabbixMetric) *ZabbixPacket { p := &ZabbixPacket{ - Request: `sender data`, - Data: data, - Timestamp: time.Now().Unix() + Request: `sender data`, + Data: data, + Timestamp: time.Now().Unix(), } return p }