Golang print io.writer

data := bytes.Buffer{}
hex := hex.NewEncoder(&data)
hex.Write([]byte("Hello Wordl"))

fmt.Println(data.String())
Restu Wahyu Saputra