Add tests for gsm7

This commit is contained in:
2024-07-25 16:33:46 +02:00
parent 161ff14189
commit 0eb0f5d773
2 changed files with 76 additions and 0 deletions

18
encoding/gsm7.go Normal file
View 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()
}