reorganize: starting with funcs

This commit is contained in:
Inanc Gumus
2019-04-27 20:18:24 +03:00
parent d71e42c6e4
commit cc790d9c06
60 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
// For more tutorials: https://blog.learngoprogramming.com
//
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
package main
import (
"bufio"
"os"
)
func main() {
in := bufio.NewScanner(os.Stdin)
p, report := new(parser), newReport()
for in.Scan() {
report.update(p.parse(in.Text()))
}
summarize(report, p.err(), in.Err())
}