package main import ( "github.com/google/flatbuffers/go" ) func main() { builder := flatbuffers.NewBuilder(0) // Create a vector of integers vec := []int32{1, 2, 3} vecOffset := builder.CreateInt32Vector(vec) // Create a nested table subTableOffset := CreateMyTable(builder, 10, vecOffset) // Create the main table MyTableStart(builder) MyTableAddSomeField(builder, 123) MyTableAddNestedTableField(builder, subTableOffset) myTableOffset := MyTableEnd(builder) // Finish building the message builder.Finish(myTableOffset) } func CreateMyTable(builder *flatbuffers.Builder, value int32, vecOffset flatbuffers.UOffsetT) flatbuffers.UOffsetT { MyTableStart(builder) MyTableAddValue(builder, value) MyTableAddVec(builder, vecOffset) return MyTableEnd(builder) }In this example, we use the PrependUOffsetTSlot method to add a nested table field to the main table. We first create a vector of integers and a nested table that contains the vector and a value field. Then we use MyTableAddNestedTableField method to add the nested table to the main table. Finally, we finish building the message using the Finish method. Overall, the example demonstrates how to use the flatbuffers package in Go to create a message with nested tables.