(buffer []byte)
| 14 | } |
| 15 | |
| 16 | func encode(buffer []byte) string { |
| 17 | //Encode the buffer to string |
| 18 | encoded := string(buffer) |
| 19 | return encoded |
| 20 | } |
| 21 | func decode(encoded string) ([]byte, error) { |
| 22 | // decode the string to a buffer. |
| 23 | data := []byte(encoded) |