mirror of
https://github.com/jwetzell/bmip10-go.git
synced 2026-08-13 03:13:43 +00:00
go fix
This commit is contained in:
@@ -14,7 +14,7 @@ func main() {
|
||||
|
||||
fmt.Printf("index\tenc\tdec\n")
|
||||
|
||||
for i := 0; i < len(encodedData); i++ {
|
||||
for i := range encodedData {
|
||||
decoded := decoder.Decode(encodedData[i])
|
||||
fmt.Printf("%d\t%d\t%d\n", i, encodedData[i], decoded)
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ func main() {
|
||||
encoder := bmip10.NewEncoder(10, 8)
|
||||
|
||||
fmt.Printf("index\traw\tenc\n")
|
||||
for i := 0; i < len(rawData); i++ {
|
||||
for i := range rawData {
|
||||
encoded := encoder.Encode(rawData[i])
|
||||
fmt.Printf("%d\t%d\t%d\n", i, rawData[i], encoded)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user