Add tests for gsm7
This commit is contained in:
18
encoding/gsm7.go
Normal file
18
encoding/gsm7.go
Normal file
@@ -0,0 +1,18 @@
|
||||
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()
|
||||
}
|
||||
Reference in New Issue
Block a user