controller
This commit is contained in:
parent
28a3ca3bb4
commit
8c3611e859
6 changed files with 78 additions and 30 deletions
8
controller/util.go
Normal file
8
controller/util.go
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
package controller
|
||||
|
||||
func unwrap[T any](output T, err error) T {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return output
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue