File: main.go

package info (click to toggle)
golang-github-mattn-go-unicodeclass 0.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 88 kB
  • sloc: makefile: 2
file content (21 lines) | stat: -rw-r--r-- 281 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package main

import (
	"bufio"
	"fmt"
	"log"
	"os"

	"github.com/mattn/go-unicodeclass"
)

func main() {
	scan := bufio.NewScanner(os.Stdin)
	scan.Split(unicodeclass.SplitClass)
	for scan.Scan() {
		fmt.Println(scan.Text())
	}
	if scan.Err() != nil {
		log.Fatal(scan.Err())
	}
}