mirror of
https://github.com/go-gst/go-gst.git
synced 2025-10-05 16:06:55 +08:00
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
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
package common
|
||||
|
||||
func Must[T any](v T, err error) T {
|
||||
if err != nil {
|
||||
panic("got error:" + err.Error())
|
||||
}
|
||||
|
||||
return v
|
||||
}
|
Reference in New Issue
Block a user