package main import ( "fmt" "github.com/mozilla-services/heka/message" ) func main() { // create a new message msg := &message.Message{ Payload: []byte("hello world"), } // retrieve the payload and print it to the console payload := msg.GetPayload() fmt.Printf("%s\n", payload) }In this example, we create a new message with a payload of "hello world". We then use the `GetPayload()` method to retrieve the payload and print it to the console. In summary, the `github.com.mozilla-services.heka.message` package library provides an implementation of the `Message` type, which comes with various methods like `GetPayload()` to extract message attributes in a structured way.