Example #1
0
func main() {
	if len(os.Args) > 1 {
		for _, str := range os.Args[1:] {

			fmt.Print(gubs.Tr(str) + " ")
		}
	} else {
		TrStdin()
	}
}
Example #2
0
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
		}
	}
}