package main import ( "time" ) type RawData struct { ipSrc string ipDst string time time.Time port int packetSize int } func (rd *RawData) getVolSize() string { return "medium" } type CleanData struct { ipbSrc string ipbDst string time time.Time port int volume string occurances int } func (cd *CleanData) equals(other *CleanData) bool { return cd.ipbSrc == other.ipbSrc && cd.ipbDst == other.ipbDst && cd.time == other.time && cd.port == other.port && cd.volume == other.volume }