Files
blt/web/forms/test.go
Gregory Ballantine 008a6a5c72
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
[Issue #11] - added ability to create new benchmark settings profiles
2025-10-22 00:58:32 -04:00

19 lines
494 B
Go

package forms
type TestForm struct {
Name string `form:"test_name" validate:"required"`
Description string `form:"test_description"`
Hardware int `form:"test_hardware" validate:"required"`
BenchmarkProfiles []uint `form:"test_benchmarks" validate:"required"`
}
func (t *TestForm) IsBenchmarkSelected(checkID uint) bool {
for _, selectedID := range t.BenchmarkProfiles {
if checkID == selectedID {
return true
}
}
return false
}