tcpassembly/bidistream is a library that extends gopacket/tcpassembly with support for reassembling of bidirectional streams.
tcpassembly/mysqlsplit is an application that uses bidistream to split packet-captured MySQL communications into files with individual requests and responses.