|
|
@ -44,12 +44,12 @@ func check(e error) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
func tcp_rows(connections_file string) { |
|
|
|
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") |
|
|
|
tcp_lines := strings.Split(connections_file, "\n") |
|
|
|
|
|
|
|
|
|
|
|
for _, line := range tcp_lines { |
|
|
|
for _, line := range tcp_lines { |
|
|
|
trim_line := strings.TrimSpace(line) |
|
|
|
trim_line := strings.TrimSpace(line) |
|
|
|
values := regexpression.ReplaceAllString(trim_line, ",") |
|
|
|
values := regexpression.Split(trim_line, -1) |
|
|
|
// Debug
|
|
|
|
// Debug
|
|
|
|
// fmt.Println("New Line ==========")
|
|
|
|
// fmt.Println("New Line ==========")
|
|
|
|
fmt.Println(values) |
|
|
|
fmt.Println(values) |
|
|
|