MCPcopy Create free account
hub / github.com/devfeel/dottask / createOneTableHtml

Function createOneTableHtml

tasks_httphandler.go:55–71  ·  view source on GitHub ↗
(col, title, header, body string)

Source from the content-addressed store, hash-verified

53}
54
55func 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
73var tableHtml = `<html>
74<html><head>

Callers 2

TaskOutputHttpHandlerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected