loadGoroutines should match what is in regen.go.
()
| 284 | |
| 285 | // loadGoroutines should match what is in regen.go. |
| 286 | func loadGoroutines() ([]byte, error) { |
| 287 | htmlRaw, err := os.ReadFile("goroutines.tpl") |
| 288 | if err != nil { |
| 289 | return nil, err |
| 290 | } |
| 291 | // Strip out leading whitespace. |
| 292 | re := regexp.MustCompile("(\n[ \t]*)+") |
| 293 | htmlRaw = re.ReplaceAll(htmlRaw, []byte("\n")) |
| 294 | return htmlRaw, nil |
| 295 | } |
| 296 | |
| 297 | // getBuckets returns a slice for testing. |
| 298 | func getBuckets() *Aggregated { |
no outgoing calls
no test coverage detected
searching dependent graphs…