package main import "time" type ( Guild struct { ID int64 Name string `json:"name"` } Player struct { ID int64 Name string `json:"name"` Guild Guild `json:"guild,omitempty"` } Association struct { ID int64 LHS Player RHS Player Note string } Note struct { ID int64 Content string Timestamp time.Time Player Player } ) type NoteData struct { Player string Date time.Time Guild string Note string Associations []NoteAssociationData } type NoteAssociationData struct { Player string Note string } type Response struct { Success bool Message string Data interface{} }