golang convert byte array to hex string

package main

import (
    "encoding/hex"
    "fmt"
)

func main() {
    // Step 1: Define a byte array
    byteArray := []byte{72, 101, 108, 108, 111, 32, 71, 111, 33}

    // Step 2: Use the hex package to convert the byte array to a hex string
    hexString := hex.EncodeToString(byteArray)

    // Step 3: Print the result
    fmt.Println(hexString)
}