19 lines
283 B
Go
19 lines
283 B
Go
package encoding
|
|
|
|
import (
|
|
"bytes"
|
|
"log"
|
|
)
|
|
|
|
type GSM7Coder struct{}
|
|
|
|
func (c *GSM7Coder) Encode(s string, buf *bytes.Buffer) {
|
|
utf8 := []byte(s)
|
|
log.Println(utf8)
|
|
buf.Write(utf8)
|
|
}
|
|
|
|
func (c *GSM7Coder) Decode(buf *bytes.Buffer) string {
|
|
return buf.String()
|
|
}
|