gitstack

grindlemire/go-tui code browser

634 B 22 lines 2026-03-14 · 70af3af raw
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
package main

import (
	"fmt"
	tui "github.com/grindlemire/go-tui"
)

templ BuildReport(project string, status string, duration string, tests int, passed int) {
	<div class="flex-row justify-center">
		<div class="flex-col border-rounded border-cyan p-1 w-1/2">
			<div class="flex-row justify-between">
				<span class="font-bold text-cyan">{project}</span>
				<span class="font-bold text-green">{status}</span>
			</div>
			<hr />
			<div class="flex-row gap-4">
				<span class="text-dim">Duration:{duration}</span>
				<span class="text-dim">Tests:{fmt.Sprintf("%d/%d passed", passed, tests)}</span>
			</div>
		</div>
	</div>
}