Similar in vein with how my SQLite driver fully replaces the filesystem access layer (VFS) with Go code, and makes it available as Go APIs you can implement (including, in read-only mode, with any io.ReaderAt).
https://github.com/ncruces/go-sqlite3/blob/main/vfs/readervf...