(col, title, header, body string)
| 53 | } |
| 54 | |
| 55 | func createOneTableHtml(col, title, header, body string) string { |
| 56 | template := `<br><table class="bordered"> |
| 57 | {{col}} |
| 58 | <caption>{{title}}</caption> |
| 59 | <thead> |
| 60 | {{header}} |
| 61 | </thead> |
| 62 | {{body}} |
| 63 | </table>` |
| 64 | data := strings.Replace(template, "{{col}}", col, -1) |
| 65 | data = strings.Replace(data, "{{title}}", title, -1) |
| 66 | data = strings.Replace(data, "{{header}}", header, -1) |
| 67 | data = strings.Replace(data, "{{body}}", body, -1) |
| 68 | html := strings.Replace(tableHtml, "{{tableBody}}", data, -1) |
| 69 | |
| 70 | return html |
| 71 | } |
| 72 | |
| 73 | var tableHtml = `<html> |
| 74 | <html><head> |
no outgoing calls
no test coverage detected