Files
go-gst/examples/plugins/registered_elements/internal/common/util.go
RSWilli 72543a2372 add example which registers and uses go custom elements
this example has an assert that checks wether or nor the finalizers ran correctly. If they don't then a mem leak will happen
2024-11-15 17:21:35 +01:00

10 lines
122 B
Go

package common
func Must[T any](v T, err error) T {
if err != nil {
panic("got error:" + err.Error())
}
return v
}