Browse Source

Allow equals sign in variable value

master
Steven Polley 4 years ago
parent
commit
b0479a8a7c
  1. 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…
Cancel
Save