update
This commit is contained in:
@@ -2,6 +2,7 @@ package core
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"bufio"
|
"bufio"
|
||||||
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -24,7 +25,9 @@ func init() {
|
|||||||
scanner := bufio.NewScanner(file)
|
scanner := bufio.NewScanner(file)
|
||||||
for scanner.Scan() {
|
for scanner.Scan() {
|
||||||
line := scanner.Text()
|
line := scanner.Text()
|
||||||
|
fmt.Println(line, "---")
|
||||||
if regexp.MustCompile(`^\s*set`).MatchString(line) {
|
if regexp.MustCompile(`^\s*set`).MatchString(line) {
|
||||||
|
fmt.Println(line, "+++")
|
||||||
Senders <- &Faker{
|
Senders <- &Faker{
|
||||||
Message: strings.Trim(line, " "),
|
Message: strings.Trim(line, " "),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user