mirror of
https://github.com/crate-ci/typos.git
synced 2024-11-22 00:51:11 -05:00
20 lines
260 B
Go
20 lines
260 B
Go
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
)
|
||
|
|
||
|
func printDict(dict []string) {
|
||
|
length := len(dict)
|
||
|
for i, word := range dict {
|
||
|
if i%2 == 0 && i != length {
|
||
|
fmt.Printf("%s,%s\n", word, dict[i+1])
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func main() {
|
||
|
printDict(DictMain)
|
||
|
printDict(DictAmerican)
|
||
|
}
|