String to Bytes

What will be printed when the code below is executed?

  1. package main
  2. func main() {
  3. s := "123"
  4. ps := &s
  5. b := []byte(*ps)
  6. pb := &b
  7. s += "4"
  8. *ps += "5"
  9. b[1] = '0'
  10. println(*ps)
  11. println(string(*pb))
  12. }

Answer

  1. 12345
  2. 103