insee_number_translator/main.go

22 lines
297 B
Go
Raw Normal View History

2021-08-18 19:01:17 +02:00
package main
import (
"flag"
"fmt"
"insee_number_translator/data"
)
func main() {
flag.Parse()
numbers := flag.Args()
for _, number := range numbers {
insee, err := data.NewInseeData(number)
if err != nil {
fmt.Println(err)
} else {
fmt.Println(insee)
}
fmt.Println()
}
}