(objs []T)
| 8 | ) |
| 9 | |
| 10 | func AsLogObjectMarshalers[T LogObjectMarshaler](objs []T) []LogObjectMarshaler { |
| 11 | if objs == nil { |
| 12 | return nil |
| 13 | } |
| 14 | s := make([]LogObjectMarshaler, len(objs)) |
| 15 | for i, v := range objs { |
| 16 | s[i] = v |
| 17 | } |
| 18 | return s |
| 19 | } |
| 20 | |
| 21 | func AsStringers[T fmt.Stringer](objs []T) []fmt.Stringer { |
| 22 | if objs == nil { |
no outgoing calls