func (ca *Card) String() string { if ca.GetLevel() == 0 { return ffmt.Sputs(map[string]interface{}{ "Base": *ca.baseOriginal, "Pos": ca.place, "Expre": ca.le, }) } return ffmt.Sputs(map[string]interface{}{ "Curr": ca.appendOriginal, "Pos": ca.place, "Expre": ca.le, }) }
func (co CardOriginal) String() string { if co.Level != 0 { return ffmt.Sputs(map[string]interface{}{ "Name": co.Name, "Id": co.Id, "Pwd": co.Password, "Type": co.Lt, "Arrt": co.La, "Race": co.Lr, "Lv": co.Level, "Atk": co.Atk, "Def": co.Def, }) } else { return ffmt.Sputs(map[string]interface{}{ "Name": co.Name, "Id": co.Id, "Pwd": co.Password, "Type": co.Lt, }) } }
func INFO(v ...interface{}) { printf(info, ffmt.Sputs(v...)) }