Writing a slice of bytes with Write()

Report a typo

Bart is a very lazy student; he skipped all the topic theory and went straight to the problems.

Now he needs to create a program that uses the Write() method to add two slices of bytes with the following phrases to the builder:

[]byte("Aye, carumba!")
[]byte("Eat my shorts!")

Bart has no idea how to create this program! Please help him write the code for this program.

Sample Input 1:

Sample Output 1:

Aye, carumba!Eat my shorts! 
Write a program in Go
package main

import (
"fmt"
"strings"
)

func main() {
var builder strings.Builder

// call the Write() function two times with the slice of bytes containing the phrases:
builder.?

builder.?

// print the built string below
fmt.Println(builder.?)
}
___

Create a free account to access the full topic