package main import "fmt" import "time" import "reflect" type Session struct { playerId string beehive string timestamp time.Time } func (s Session) IsEmpty() bool { return reflect.DeepEqual(s,Session{}) } func main() { x := Session{} if x.IsEmpty() { fmt.Print("is empty") } }