(objects []data.Object)
| 80 | } |
| 81 | |
| 82 | func loadMessage(objects []data.Object) string { |
| 83 | var b strings.Builder |
| 84 | b.WriteString(fmt.Sprintf("loaded %d data object%s\n\n", len(objects), plural.Slice(objects, "s"))) |
| 85 | for k, o := range objects { |
| 86 | b.WriteString(" ") |
| 87 | b.WriteString(o.String()) |
| 88 | b.WriteByte('\n') |
| 89 | if k >= maxMessageObjects { |
| 90 | b.WriteString(" ...\n") |
| 91 | break |
| 92 | } |
| 93 | } |
| 94 | return b.String() |
| 95 | } |
| 96 | |
| 97 | func loadMeta(sctx *super.Context, meta string) (super.Value, error) { |
| 98 | if meta == "" { |