golang string to bytes array code example Example: golang string to bytes hello := []byte("hello-world")