Allow equals sign in variable value
This commit is contained in:
parent
74c01beba4
commit
b0479a8a7c
1
main.go
1
main.go
@ -22,6 +22,7 @@ func main() {
|
||||
//Store the variable name in v[0] and the value in v[1]
|
||||
//then strip the quotes from the value.
|
||||
v := strings.Split(s.Text()[7:], "=")
|
||||
v[1] = strings.Join(v[1:], "=")
|
||||
v[1] = strings.TrimSuffix(v[1], "\"")
|
||||
v[1] = strings.TrimPrefix(v[1], "\"")
|
||||
fmt.Printf(" - %s=%s\n", v[0], v[1])
|
||||
|
Loading…
x
Reference in New Issue
Block a user