It's not Go then
go-msquic is a Go wrapper for the Microsoft's QUIC library
It is mentioned & advised to use that one in the README. However if you need more perf, you might want to give a try at go-msquic.
def bracket[A, T](ctor: () -> A, next: (a: A) -> T): T = val a = ctor(); try { return next(a) } finally { a.dispose() }
It's not Go then