added mod_tag (fix)
parent
2665d10c09
commit
5ff5942b4f
1
lib.go
1
lib.go
|
@ -116,6 +116,7 @@ func Tokens(str string) ([]string, error) {
|
|||
sb = strings.Builder{}
|
||||
mode = MODE_STR
|
||||
}
|
||||
mode = MODE_STR
|
||||
case MODE_TAG:
|
||||
sb.WriteRune(a)
|
||||
params = append(params, sb.String())
|
||||
|
|
|
@ -11,7 +11,7 @@ func TestLines(t *testing.T) {
|
|||
//lines, err := Lines("; \";\" ;;")
|
||||
//Lines("a\nb\\\\nc")
|
||||
lines, err := Lines(`
|
||||
go build -o main.exe -ldflags="a=1 b=2" ./main.go
|
||||
"A STR"
|
||||
`)
|
||||
//lines, err := Lines(`
|
||||
//go build -o main.exe -ldflags="a=1 b=2" ./main.go
|
||||
|
|
Loading…
Reference in New Issue