func (c Comment) String() string { ls := new(logs.LogString) ls.AddS("Comment\n") ls.AddF("ID: %d ReportID: %d Created: %v\n", c.ID, c.ReportID, c.DateCreated) ls.AddF("%s\n", c.Comment) return ls.BoxC(70) }
func (r Request) String() string { ls := new(logs.LogString) ls.AddS("Request_Type\n") ls.AddF("Start: %v\n", r.start) ls.AddF("Request - type: %s ver: %s\n", r.ApiRequestType, r.ApiRequestVersion) return ls.BoxC(60) }
func (c Comments) String() string { ls := new(logs.LogString) ls.AddS("Comments\n") ls.AddF("Loaded: %t lastID: %d\n", c.Loaded, c.lastID) for _, x := range c.All { ls.AddS(x.String()) } ls.AddS("ID Index (All values should match)\n") for k, v := range c.indID { ls.AddF(" %-6d %-6d\n", k, v.ID) } ls.AddS("ReportID Index\n") for k, v := range c.indReportID { ls.AddF(" %d [", k) for _, x := range v { ls.AddF("%d ", x.ID) } ls.AddS("]\n") } return ls.BoxC(80) }