String converts Collection to string
()
| 721 | |
| 722 | // String converts Collection to string |
| 723 | func (v Collection) String() string { |
| 724 | var buf bytes.Buffer |
| 725 | buf.Write([]byte("{")) |
| 726 | for i, attr := range v { |
| 727 | if i > 0 { |
| 728 | buf.Write([]byte(" ")) |
| 729 | } |
| 730 | fmt.Fprintf(&buf, "%s=%s", attr.Name, attr.Values) |
| 731 | } |
| 732 | buf.Write([]byte("}")) |
| 733 | |
| 734 | return buf.String() |
| 735 | } |
| 736 | |
| 737 | // Type returns type of Value (TypeCollection for Collection) |
| 738 | func (Collection) Type() Type { return TypeCollection } |