controller

This commit is contained in:
Bronku 2025-01-29 10:26:36 +01:00
parent 28a3ca3bb4
commit 8c3611e859
6 changed files with 78 additions and 30 deletions

8
controller/util.go Normal file
View file

@ -0,0 +1,8 @@
package controller
func unwrap[T any](output T, err error) T {
if err != nil {
panic(err)
}
return output
}