func getGraphiteSendForCounter(cnt *counters.Counters, input string) (string, int64) { // Some data with expected sum of 6 d := []byte(input) packets := udp.ParseMessage(d, prefix_internal, output, udp.ParseLine) for _, p := range packets { cnt.Add(p) } var buf []byte buf, num := cnt.Process(buf, 1, 10) return string(buf), num }