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.
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
}