Allow equals sign in variable value

This commit is contained in:
Steven Polley 2018-08-18 17:26:30 -06:00
parent 74c01beba4
commit b0479a8a7c
1 changed files with 1 additions and 0 deletions

View File

@ -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])