import ( "git.apache.org/thrift.git/lib/go/thrift" ) func main() { socket, _ := thrift.NewTSocket("localhost:9090") transport := thrift.NewTBufferedTransport(socket, 1024) if err := transport.Open(); err != nil { panic(err) } // do something with transport transport.Close() }In this example, a new TSocket and TBufferedTransport are created to establish a connection to a Thrift server. After some communication is performed using the transport, the "Close" method is called to gracefully close the connection. Overall, the "git.apache.org/thrift.git/lib/go/thrift" package library provides a comprehensive set of tools for creating and consuming Thrift services in Go.