(in []I, fn func(I) O)
| 81 | } |
| 82 | |
| 83 | func convSlice[I any, O any](in []I, fn func(I) O) []O { |
| 84 | out := make([]O, len(in)) |
| 85 | for i, v := range in { |
| 86 | out[i] = fn(v) |
| 87 | } |
| 88 | return out |
| 89 | } |
| 90 | |
| 91 | func (d *DB) Graphs(ctx context.Context) ([]*db.Graph, error) { |
| 92 | gs, err := d.q.Graphs(ctx) |
no outgoing calls
no test coverage detected