package main import ( "time" ) type RawData struct { ipSrc string ipDst string asSrc int asDst int portSrc int portDst int packets int pktLenDist string time time.Time } type CleanData struct { ipbSrc string ipbDst string asSrc int asDst int portSrc int portDst int occurances int volume string time time.Time } func (cd *CleanData) equals(other *CleanData) bool { return cd.ipbSrc == other.ipbSrc && cd.ipbDst == other.ipbDst && cd.asSrc == other.asSrc && cd.asDst == other.asDst && cd.portSrc == other.portSrc && cd.portDst == other.portDst && cd.volume == other.volume && cd.time == other.time }