On branch timer
Changes to be committed: modified: main.go Arrays for each line of the tcp file.
This commit is contained in:
parent
8e2f4e3db8
commit
93fd6f916b
4
main.go
4
main.go
@ -44,12 +44,12 @@ func check(e error) {
|
||||
}
|
||||
|
||||
func tcp_rows(connections_file string) {
|
||||
regexpression := regexp.MustCompile(`[^a-zA-Z0-9_:\r\n\t\v]+`)
|
||||
regexpression := regexp.MustCompile(`[\r\n\t\v]+`)
|
||||
tcp_lines := strings.Split(connections_file, "\n")
|
||||
|
||||
for _, line := range tcp_lines {
|
||||
trim_line := strings.TrimSpace(line)
|
||||
values := regexpression.ReplaceAllString(trim_line, ",")
|
||||
values := regexpression.Split(trim_line, -1)
|
||||
// Debug
|
||||
// fmt.Println("New Line ==========")
|
||||
fmt.Println(values)
|
||||
|
Loading…
Reference in New Issue
Block a user