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