mirror of
https://github.com/thebaer/punctuation.git
synced 2018-07-20 08:25:21 +00:00
Add comments
This commit is contained in:
parent
fe0a21acec
commit
34f32661fd
@ -7,8 +7,11 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// valid characters to extract
|
||||
const validPunc = ";:'\",!?.-()"
|
||||
|
||||
// Extract scans the given File and returns only typical punctuation used in
|
||||
// prose.
|
||||
func Extract(f *os.File) string {
|
||||
var out string
|
||||
in := bufio.NewScanner(f)
|
||||
|
Loading…
Reference in New Issue
Block a user