go fmt fixes

This commit is contained in:
Sergei Antipov 2016-02-12 13:29:57 +06:00
parent 412df15265
commit 5b2fe65d14
1 changed files with 13 additions and 13 deletions

View File

@ -15,36 +15,36 @@ import (
// ZabbixMetric class. // ZabbixMetric class.
type ZabbixMetric struct { type ZabbixMetric struct {
Host string Host string
Key string Key string
Value string Value string
Timestamp int64 Timestamp int64
} }
// ZabbixMetric class constructor. // ZabbixMetric class constructor.
func NewZabbixMetric(host, key, value string) *ZabbixMetric { func NewZabbixMetric(host, key, value string) *ZabbixMetric {
m := &ZabbixMetric{ m := &ZabbixMetric{
Host: host, Host: host,
Key: key, Key: key,
Value: value, Value: value,
Timestamp: time.Now().Unix() Timestamp: time.Now().Unix(),
} }
return m return m
} }
// ZabbixPacket class. // ZabbixPacket class.
type ZabbixPacket struct { type ZabbixPacket struct {
Request string Request string
Data []*ZabbixMetric Data []*ZabbixMetric
Timestamp int64 Timestamp int64
} }
// ZabbixPacket class cunstructor. // ZabbixPacket class cunstructor.
func NewZabbixPacket(data []*ZabbixMetric) *ZabbixPacket { func NewZabbixPacket(data []*ZabbixMetric) *ZabbixPacket {
p := &ZabbixPacket{ p := &ZabbixPacket{
Request: `sender data`, Request: `sender data`,
Data: data, Data: data,
Timestamp: time.Now().Unix() Timestamp: time.Now().Unix(),
} }
return p return p
} }