func main() { if len(os.Args) > 1 { for _, str := range os.Args[1:] { fmt.Print(gubs.Tr(str) + " ") } } else { TrStdin() } }
func trReader(reader *bufio.Reader) { for { line, err := reader.ReadString('\n') if err == nil || err == io.EOF { print(gubs.Tr(line) + "\n") } if err != nil { break } } }